Results 1 to 6 of 6
  1. #1
    gjw1012 is offline Novice
    Windows XP Access 2007
    Join Date
    Jul 2009
    Posts
    4

    Post Lookup Values

    Hi,
    I am relatively new to Access, and use 2007 version. Can anyone help me solve a problem?
    I want to create 2 or 3 lookup lists, where the value selected in List 1 determines the values available to be selected in List2, and similar for List 3. Eg: If list 1 contains Countries, and Country AA is selcted, List 2 shows only Cities for Country AA, (say City ZZ) and List3 contains only Districts in City ZZ (say District ZZ12). Its the type of list selection which airlines use to restrict available destinations for particular departure airports.
    Any help appreciaited, thanks.

  2. #2
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 10 Access 2013 32bit
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    It is called Cascading Lists or ComboBoxes and this link should help.

  3. #3
    gjw1012 is offline Novice
    Windows XP Access 2007
    Join Date
    Jul 2009
    Posts
    4

    Cascading Combo Boxes

    Thanks to RuralGuy for help with my request. I have managed to add the code for cascading combo boxes to my form, but now cannot make a connection with the table so that, although the form shows the selections I make, the table is not updated to store the values. Any suggestions very welcome.

    Many thanks.

    gjw

  4. #4
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 10 Access 2013 32bit
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    You're not using Lookup Fields are you?

  5. #5
    gjw1012 is offline Novice
    Windows XP Access 2007
    Join Date
    Jul 2009
    Posts
    4
    Thanks for your very prompt response to my post. I have 2 tables (Categories & Products) and have used the code you suggested on the form. It has created a relationship, which allows the two combo boxes on the form to work well. Each category selected in Combo Box 1, returns all the correct values in Combo Box 2. A great success, thanks. I thought at that point I had cracked it with your assistance, only to discover later that the values selected do not get posted to the table from which I created the form. I subsequently amended the Combo Box 1 "Row Source" to "Categories" and this now adds the data to the Main Table, OK. However the Combo Box 2 resolutely refuses to do the same when its "Row source" is amended to "Products". Instead it loses the Products and then shows the Product ID.
    Any help much appreciated.

    Thanks

    gjw

  6. #6
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 10 Access 2013 32bit
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    Maybe if you posted a sample of your db so we could look at it. Remove any sensitive data of course.

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

Similar Threads

  1. Lookup Form
    By virgiljones in forum Access
    Replies: 0
    Last Post: 10-17-2008, 10:39 PM
  2. lookup values in backend tables
    By deb56 in forum Database Design
    Replies: 1
    Last Post: 01-23-2008, 11:12 AM
  3. Lookup Form
    By cav0227 in forum Forms
    Replies: 0
    Last Post: 04-16-2007, 09:23 AM
  4. Lookup
    By neon'00 in forum Forms
    Replies: 2
    Last Post: 04-14-2007, 01:19 PM
  5. Lookup Tables
    By JoeBio in forum Database Design
    Replies: 1
    Last Post: 09-01-2006, 07:34 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