Results 1 to 4 of 4
  1. #1
    s.carter is offline Novice
    Windows 8 Access 2013
    Join Date
    Jun 2015
    Posts
    7

    Displaying data based on user selections

    I have two cascading combo boxes that the user must select. Based on the selections I want to display two additional fields. For example,
    If you choose A and 1 show XX and YY
    If you choose A and 2 show XX and XY
    If you choose B and 1 show XY and YY
    If you choose B and 2 show XX and XX
    ...

    All of this pulls from a 4 column main table
    Column 1 = A, B...
    Column 2 = 1, 2...


    Column 3 = XX, XY...
    Column 4 = YY, XY...

    Thanks!

  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,652
    It sounds like this could work, presuming you add the 3rd and 4th fields to the second combo.

    http://www.baldyweb.com/Autofill.htm
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  3. #3
    s.carter is offline Novice
    Windows 8 Access 2013
    Join Date
    Jun 2015
    Posts
    7
    Perfect! I'm almost all set. Now that I have all 4 items pulling on the form. How can I create a clear all button? Once you do a search and all 4 boxes are populated, you can do another search but if the user is distracted and forgets to select the second dropdown they will be looking at the wrong information in text boxes 3 and 4.
    I googled "clear all" and "new search" but all the explanations were rather confusing. I saw a video using the button control and the undo feature to clear a form - when I tried it it said it was unavailable.

  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,652
    You should be able to set the combos to "" or Null.
    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. Replies: 2
    Last Post: 07-01-2014, 10:48 AM
  2. Replies: 10
    Last Post: 10-14-2013, 10:18 AM
  3. Selections based off of tiered criteria
    By New_2_Access in forum Access
    Replies: 7
    Last Post: 06-19-2012, 11:00 PM
  4. Replies: 6
    Last Post: 06-18-2012, 05:11 PM
  5. Replies: 6
    Last Post: 12-20-2010, 04:17 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