I created a form (FORM A) with 5 combo box for users to select values. Then I created a query that uses the values on the FORM A as criteria.
I placed a Search Button on FORM A to open a result form called FORM B with that values.
The query is not returning the results I want. If I use the OR logic on the query (criteria on combo box one, or two or three…), it will return large number of results with that criteria in that field.
If I use AND logic user have to select all 5 criteria and they will get one answer (as it should). But they don’t usually know the 5 values at most they’ll know 2 or 3.
What I want is if they chose 3 criteria, I want the result to be the union of the 3 selected fields and the 2 nulls. This way it will return at least 100 records instead of 800.
Please help
I placed a Search Button on FORM A to open a result form called FORM B with that values.
The query is not returning the results I want. If I use the OR logic on the query (criteria on combo box one, or two or three…), it will return large number of results with that criteria in that field.
If I use AND logic user have to select all 5 criteria and they will get one answer (as it should). But they don’t usually know the 5 values at most they’ll know 2 or 3.
What I want is if they chose 3 criteria, I want the result to be the union of the 3 selected fields and the 2 nulls. This way it will return at least 100 records instead of 800.
Please help