Results 1 to 9 of 9
  1. #1
    NotaryEtc is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Apr 2014
    Posts
    22

    show full name in combo box

    Hello,



    In my Customer table (named customerT), I have a firstname and lastname field.....how can I show the customers full name in a combo box?

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,931
    Concatenate:

    SELECT ID, Lastname & ", " & Firstname AS CustName FROM customerT;
    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
    NotaryEtc is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Apr 2014
    Posts
    22
    Thank you but where do I put that at?

  4. #4
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,931
    Combobox RowSource property.
    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.

  5. #5
    NotaryEtc is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Apr 2014
    Posts
    22
    Great, thanks!

  6. #6
    NotaryEtc is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Apr 2014
    Posts
    22
    that didn't work.....I'm now prompted to enter a parameter when opening the form, and when I do that, it tells me that the field size doesn't permit my selection

  7. #7
    rpeare is offline VIP
    Windows XP Access 2003
    Join Date
    Jul 2011
    Posts
    5,442
    You'll have to modify june's SQL statement driving the combo box to include your table's primary key, in June's example he's just using ID to indicate the Primary Key field.

  8. #8
    NotaryEtc is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Apr 2014
    Posts
    22
    That did it!! Thanks you all!!

  9. #9
    Synergy.ron@gmail.com is offline Competent Performer
    Windows 10 Access 2016
    Join Date
    Oct 2020
    Location
    washington
    Posts
    126

    Red face name concatenation

    Quote Originally Posted by NotaryEtc View Post
    Hello,

    In my Customer table (named customerT), I have a firstname and lastname field.....how can I show the customers full name in a combo box?
    watch this...hope it helps..
    (149) Display LastName, FirstName Together in your Combo Boxes in Microsoft Access (Full Name) Concatenate - YouTube

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

Similar Threads

  1. Combo box to show for new record only
    By vad77 in forum Forms
    Replies: 3
    Last Post: 02-21-2014, 07:04 PM
  2. Replies: 11
    Last Post: 07-29-2013, 07:49 AM
  3. Replies: 6
    Last Post: 02-27-2013, 04:43 PM
  4. Replies: 2
    Last Post: 08-16-2012, 10:02 PM
  5. Combo box Value Must Show an object: How To
    By vdanelia in forum Forms
    Replies: 6
    Last Post: 02-03-2011, 04:16 AM

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