Results 1 to 3 of 3
  1. #1
    Traceyann1964 is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jan 2015
    Posts
    23

    Combo Box help

    Hi I want to have a combo box autopopulate 6 columns. I have a table called "vehicles" I want to select a particular vehicle registration number and it autopopulate 5 more fields. However, 2 of the fields in the table are based on a look up value in the table. ie The fields Vehicle Make and Vehicle Model allow the user to choose from a dropdown box so they can select from a list instead of typing in every time eg" Ford" and " Mondeo"


    The combo box results are showing these 2 fields as a number? Not sure why, can anyone help?

  2. #2
    John_G is offline VIP
    Windows 7 32bit Access 2010 32bit
    Join Date
    Oct 2011
    Location
    Ottawa, ON (area)
    Posts
    2,615
    You have tripped over one of the major issues with lookup fields in tables. The table itself does not store the lookup values, it stores the lookup index, which makes that field useless in many cases, including combo boxes (among others).

    My advice is to get rid of those lookup fields, and convert them to plain integer containing a FK's to lookup tables. Then create separate lookup tables (though one could be used, with two fields), and use queries when you need to join the two. IMO, lookup fields are an abomination which violate the rules of referential databases.

  3. #3
    Traceyann1964 is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jan 2015
    Posts
    23
    Ahh Thank you. I understand that now

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

Similar Threads

  1. Replies: 2
    Last Post: 10-21-2014, 07:57 AM
  2. Replies: 3
    Last Post: 07-03-2013, 10:38 AM
  3. Replies: 1
    Last Post: 10-30-2012, 10:29 AM
  4. Replies: 2
    Last Post: 08-16-2012, 10:02 PM
  5. Replies: 4
    Last Post: 08-16-2011, 05:54 PM

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