Results 1 to 2 of 2
  1. #1
    Cherri is offline Novice
    Windows 8 Access 2013
    Join Date
    May 2013
    Posts
    1

    drop down list that populates more than one field

    I have a master table and a table titled location. The location table has 3 columns: City, State and Zip. I want to be able to select the zip code from the drop down list and have the city and state automatically populate in their perspective boxes. Can anyone tell me how to do this? Thank you!

  2. #2
    June7's Avatar
    June7 is online now VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,771
    Make comobox a multi-column with City, State, and Zip. Then a textbox ControlSource can have expression that references the combobox columns. Column index begins with 0 so if State is in the second column:

    =[comboboxname].Column(1)

    This will not save the data to table. That requires code. However, there is no reason to save City and State. These can be retrieved by joining tables in queries.
    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: 04-10-2013, 02:59 PM
  2. Insert drop-down list in Parent Field in a form
    By Haleakala17 in forum Forms
    Replies: 7
    Last Post: 09-11-2012, 07:20 PM
  3. Replies: 11
    Last Post: 12-25-2011, 04:33 PM
  4. Replies: 2
    Last Post: 02-13-2010, 01:54 PM
  5. Replies: 3
    Last Post: 09-26-2009, 01:57 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