Results 1 to 8 of 8
  1. #1
    SteveApa is offline Advanced Beginner
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jan 2015
    Posts
    89

    Multiple unbound Combos

    Hi all.



    I have 4 unbound combo boxes on a form. I want to fill each combo box with filtered data based on the values of the other combo boxes - this way the order of the combo boxes would not effect the results. I tried to use the row source as a query with criteria. See below. This query would be used as row source for combo1 - using combo2, 3, 4 criteria to filter combo1. Then I would have a query like this for the other 3 combos. But, This query only works if I use 1 combo based on 1 other - will not work if I have 3 columns with criteria??? Thanks for the help.

    This does not work...

    Click image for larger version. 

Name:	Query.jpg 
Views:	11 
Size:	52.0 KB 
ID:	19768

    This does work to filter combo1 based on value of combo2(only 1 criteria)
    Click image for larger version. 

Name:	Query.jpg 
Views:	11 
Size:	42.9 KB 
ID:	19770

  2. #2
    rpeare is offline VIP
    Windows XP Access 2003
    Join Date
    Jul 2011
    Posts
    5,441
    put your criteria on successive OR lines unless you intend that the criteria match in all three fields (PLT Sub Group, Plating and Current Status) If you want to search for any of the variables based on the selection of the others.

  3. #3
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,772
    Don't think you need the IIf().


    LIKE [comboGroup2] & "*"
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  4. #4
    SteveApa is offline Advanced Beginner
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jan 2015
    Posts
    89
    I want each combo to have it's list based on the other 3 combos - regardless of what order the combos are set.

    Click image for larger version. 

Name:	Query.jpg 
Views:	12 
Size:	18.3 KB 
ID:	19773

  5. #5
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,772
    I am not sure that is possible. Never seen anything like it. Regardless, the syntax I show for the LIKE operator and wildcard is correct.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  6. #6
    rpeare is offline VIP
    Windows XP Access 2003
    Join Date
    Jul 2011
    Posts
    5,441
    Personally, I would do this with code, because you can't simply requery, you have to check for the existence of a combination.

    For instance let's say you have chosen items X in your first box, Y in your second box and Z in your third box. If you then go back and change X to W, it may completely invalidate choices Y and Z, in other words you may have no instances of the combination of variables if you change just one of them.

  7. #7
    SteveApa is offline Advanced Beginner
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jan 2015
    Posts
    89
    I just thought about what you said... The LIke and the *. Now I think I understand the logic. I will try it

  8. #8
    SteveApa is offline Advanced Beginner
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jan 2015
    Posts
    89
    rpeare. I understand and agree. If you were to go back and try to change X to W, W would not be shown in the combo... The combo should show up as empty and only X would be the possible choice... Right?

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

Similar Threads

  1. Replies: 5
    Last Post: 02-23-2013, 06:36 PM
  2. Writing multiple unbound controls to a table
    By dccjr in forum Programming
    Replies: 4
    Last Post: 11-28-2012, 08:18 PM
  3. Replies: 5
    Last Post: 11-27-2012, 03:56 AM
  4. form view with multiple combos
    By AdrianoG87 in forum Forms
    Replies: 2
    Last Post: 09-26-2011, 11:10 PM
  5. Replies: 0
    Last Post: 12-20-2010, 12:35 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