Results 1 to 7 of 7
  1. #1
    JGrots is offline Advanced Beginner
    Windows 7 64bit Access 2003
    Join Date
    Jan 2013
    Posts
    65

    Arrow Combo Box Displays Full Name and Initials but only records the initials in combo box

    Is there a way to have the drop down list from the combo box display an employee's full name and initials but only record the initials in the combo box. For example, the drop down list would look like this:

    Doe, John | JD
    Smith, Joe | JS


    Williams, Dana | DW

    So if I want Joe Smith, I would click on his name and in the combo box once I'm done selecting his name, JS would appear, not his full name.

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,603
    Use concatenation.

    You have fields for Initials, FirstName, LastName? or do you calculate the initials from the name fields (that's what I would do).

    Why do you want the initials? Are you using them as key value? Risk multiple employees with same initials.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  3. #3
    orange's Avatar
    orange is offline Moderator
    Windows XP Access 2003
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,847

  4. #4
    JGrots is offline Advanced Beginner
    Windows 7 64bit Access 2003
    Join Date
    Jan 2013
    Posts
    65
    I wanted to have initials because of the lack of space to show the full name in the box. But you guys bring up good points. I think I'll make it so the full name shows instead.

  5. #5
    orange's Avatar
    orange is offline Moderator
    Windows XP Access 2003
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,847
    What you show/display on a form or combo and what you store in your table(s) are quite different things.

  6. #6
    JGrots is offline Advanced Beginner
    Windows 7 64bit Access 2003
    Join Date
    Jan 2013
    Posts
    65
    Instead of displaying the initials, I want to display an employee's First and Last name and their department they work in. Right now I have two tables, Employee table and a department table. I have these two linked tables linked together using Primary and Foreign keys. I have a combo box for the employee and I want to display the employee's name and their department. The problem I'm having is that the name shows up but the department shows up with the ID number and not the name. The department is linked to the employee table by the DepartmentID number. Can this be done?

  7. #7
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,603
    The combobox RowSource will have to be a query that joins the employee and department tables. This will allow the related info such as department name to be available for display in combobox.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Replies: 2
    Last Post: 08-16-2012, 10:02 PM
  2. Combo box displays with outline
    By snowboarder234 in forum Reports
    Replies: 2
    Last Post: 02-16-2012, 03:24 PM
  3. Replies: 4
    Last Post: 10-18-2010, 09:44 PM
  4. Report displays no records
    By windwardmi in forum Reports
    Replies: 5
    Last Post: 10-05-2010, 12:10 PM
  5. need a formula function Name to Initials
    By techexpressinc in forum Queries
    Replies: 2
    Last Post: 09-17-2010, 12:37 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums