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.

Our community of experts have been thoroughly vetted for their expertise and industry experience.

Log in to continue reading
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform for $9.99/mo
View membership options
Unlock 1 Answer and 6 Comments.
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
See how we're fighting big data
The Value of Experts Exchange in My Daily IT Life

Experts Exchange (EE) has become my company's go-to resource to get answers. I've used EE to make decisions, solve problems and even save customers. OutagesIO has been a challenging project and... Keep reading >>


Owner of Outages.IO
Phoenix, Arizona, United States
Member Since 2016
Join a full scale community that combines the best parts of other tools into one platform.
Unlock 1 Answer and 6 Comments.
View membership options
“All of life is about relationships, and EE has made a virtual community a real community. It lifts everyone's boat.”
William Peck

Member since 2004