Results 1 to 5 of 5
  1. #1
    syd is offline Novice
    Windows 7 32bit Access 2013
    Join Date
    Oct 2013
    Posts
    2

    4 Cascading Combo Boxes using multiple tables

    I am working with four combo boxes. I have the first three working the way I want. The problem is the last one. What I need is for the list in the fourth combo box to be the names of the tables that the final info is going to come from.

    My combo boxes are as follows:



    Facility Type
    Facility County
    Facility Name
    Contact Info

    So the tables I need to use for the Contact Info are as follows:
    Admin
    Audit
    Billing
    CFO
    Contract

    So ideally when someone chooses a facility type the county will then be filtered based on the first selecting and from there the facility name will then again be filted based on the previous selection so when a contact is selected I need all the info from that particular table to come up.

    Before this project I never had to do anything with code so I am not sure what other info you need


    Thanks

  2. #2
    ItsMe's Avatar
    ItsMe is offline Sometimes Helpful
    Windows XP Access 2003
    Join Date
    Aug 2013
    Posts
    7,862
    There is a sample DB I uploaded specifically for cascading combo boxes. It is not designed to be specifically intuitive. It is there to show various examples of dependencies for comboboxes.

    https://www.accessforums.net/sample-...tml#post191005

    If you take a look at it you may be able to better identify a specific problem or question. I am not sure I understand where exactly your hiccup is. If you got three comboboxes to work, the fourth should not be an issue, IMO.

  3. #3
    syd is offline Novice
    Windows 7 32bit Access 2013
    Join Date
    Oct 2013
    Posts
    2
    I am having trouble with using mulitiple table for the fourth box. I can get it to work with one table but not mulitiples.

  4. #4
    ItsMe's Avatar
    ItsMe is offline Sometimes Helpful
    Windows XP Access 2003
    Join Date
    Aug 2013
    Posts
    7,862
    I would suggest you start with an Access query and use that to get the results you are after. If you can not get it to work there you will not be able to get it to work using a combobox or a bound form, or report, etc.

    It is all about querying the recordset you need. In the sample DB I mentioned, it illustrates stepping through different levels of criteria via an SQL statement. The various combo boxes reference the SQL for their respective recordsource.

    Once you have the appropriate SQL, you can assign it to your combo box. Start with a query that has the appropriate Join. You may need to visit your table structure if the Access query is not providing the desired results.

  5. #5
    ssanfu is offline Master of Nothing
    Windows XP Access 2000
    Join Date
    Sep 2010
    Location
    Anchorage, Alaska, USA
    Posts
    9,664
    So the tables I need to use for the Contact Info are as follows:
    Admin
    Audit
    Billing
    CFO
    Contract

    So ideally when someone chooses a facility type the county will then be filtered based on the first selecting and from there the facility name will then again be filted based on the previous selection so when a contact is selected I need all the info from that particular table to come up.
    My question would be:

    Why do you have 5 tables for contact info?
    Are the fields in each of the 5 tables the same (same type of data)?

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

Similar Threads

  1. Cascading Combo boxes
    By finsmith in forum Forms
    Replies: 10
    Last Post: 02-12-2013, 09:37 AM
  2. Replies: 3
    Last Post: 01-30-2012, 09:43 AM
  3. Cascading combo boxes
    By combine21 in forum Forms
    Replies: 3
    Last Post: 12-02-2010, 12:57 PM
  4. Cascading Combo Boxes
    By desireemm1 in forum Programming
    Replies: 1
    Last Post: 10-05-2009, 06:00 AM
  5. Cascading Combo Boxes
    By gjw1012 in forum Access
    Replies: 1
    Last Post: 07-25-2009, 04:59 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