troubleshooting Question

Complicated search function

Avatar of SteveL13
SteveL13Flag for United States of America asked on
Microsoft Access
6 Comments1 Solution64 ViewsLast Modified:
I have a form that has 5 comboboxes on it.  They are named cboCriteria1, cboCriteria2, cboCriteria3, cboCriteria4, and cboCriteria5,

And I have a table that looks like this:
If the user selects "Football" in any one of the 5 comboboxes I want the records that have "Football" entered in any of the 5 criteria fields in the table to be displayed in a form that opens in datasheet view mode.  Or in this case, records 1 and 6.  And f the user selects "Football" in all 5 comboboxes then I want the same result...  records 1 and 6 to be displayed.

But if the user for example selects "Football" in the 3rd combobox and "Baseball" in the 2nd combobox then I want all of the field data in records 1, 5, and 6 to display.

The resulting form should display all data in each of the records that have been found.  The form will open as a result of a click of a command button.
Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 1 Answer and 6 Comments.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 6 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros