Results 1 to 4 of 4
  1. #1
    schwabe is offline Advanced Beginner
    Windows 7 32bit Access 2007
    Join Date
    Jan 2012
    Location
    San Francisco Bay Area
    Posts
    50

    Dependent Combo Boxes

    Hello all,



    I'd like to set up a form with dependent Combo Boxes. How do I do that?

    Just in case, I'm adding a few detail:

    I have a set of customers and for each customer a set of projects and for each project I have several bills. What I'd like to do with this form is to have a combobox to choose the customer (no problem, here). Once a customer is chose, only the projects with this customer should be given as selection of a second ComboBox.
    Once a project is selected, I'd like to have another ComboBox giving the numbers of the bills which refer to this project.

    Thank you a lot for your support!

  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,521
    Sounds like cascading combos:

    Baldy-Cascading Combos
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  3. #3
    schwabe is offline Advanced Beginner
    Windows 7 32bit Access 2007
    Join Date
    Jan 2012
    Location
    San Francisco Bay Area
    Posts
    50

    It's a little more complex than that...

    Hello Paul,

    thanks for your reply / exactly what I was looking for.

    However, there is still one thing:

    I have one table (tabCustomer) with CustomerID and CustomerName and another table (tabProject) with ProjectID and ProjectName and a column with links to the CustomerID. How do I proceed then?

    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,521
    The table layout doesn't really matter. It's a matter of coming up with the appropriate SQL, like:

    SELECT Blah
    FROM tabProject
    WHERE CustomerID = 123

    where 123 comes from your combo. So either method will work just fine.
    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. Combo Boxes with dependent queries
    By K Roger in forum Access
    Replies: 3
    Last Post: 09-27-2011, 11:58 AM
  2. Dependent Combo box issue
    By pratim09 in forum Forms
    Replies: 9
    Last Post: 08-30-2011, 01:01 AM
  3. Dependent List Boxes do not refresh using ReQuery
    By weeblesue in forum Programming
    Replies: 2
    Last Post: 03-28-2011, 08:47 AM
  4. Dependent Combo Box
    By tigers in forum Forms
    Replies: 1
    Last Post: 06-16-2009, 12:46 PM
  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