Results 1 to 4 of 4
  1. #1
    mallorn is offline Novice
    Windows 7 64bit Access 2010 32bit
    Join Date
    Sep 2011
    Posts
    2

    combo values


    Hello,
    I'm very new in Access programming.
    My problem is to show different values in combobox but save their number representation (I tried combobox record list but without success).

    I mean:
    1st_table: worker_ID, FirstName, LastName, ....
    2nd_table: worker_ID, .....
    My_Form writes values in 2nd_table directly.
    I want to show on My_Form's combobox some strings combination of 1st_table columns (FirstName + " " + LastName - not a problem to show in SQL ) instead of worker_ID. But I want to write the worker_ID back in 2nd_table.

    How to do it?

  2. #2
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,640
    The bound column property of the combo determines which field is saved. Presuming your row source is

    SELECT worker_ID, FirstName + " " + LastName AS FullName

    you'd want the bound column to be 1. You can use the column widths property of the combo to hide the ID if you want.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  3. #3
    mallorn is offline Novice
    Windows 7 64bit Access 2010 32bit
    Join Date
    Sep 2011
    Posts
    2
    Works great, Thanks.

  4. #4
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,640
    Happy to help, and welcome to the site by the way!
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

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

Similar Threads

  1. Cannot select values in combo box
    By EMeitz in forum Forms
    Replies: 3
    Last Post: 08-27-2011, 12:48 AM
  2. Preventing other values in combo box
    By cheese9799 in forum Forms
    Replies: 3
    Last Post: 02-14-2011, 03:31 PM
  3. Replies: 1
    Last Post: 03-27-2010, 06:13 AM
  4. Replies: 1
    Last Post: 08-26-2009, 10:45 AM
  5. Replies: 3
    Last Post: 02-26-2009, 10:17 AM

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