I have a form with 5 fields on it. I want the user to enter as many or as few parameters as they require to pull up their results from a query that will run when they click 'start search'
Problem is this...
How do I create the query so that if a parameter is or is not supplied?
Example;
Location could be London or Cardiff
Part could be specific or all
If London was selected and no part entered it would return all london parts
If no Location was entered but a part was the details of that part at both locations would be returned.
If neither location or part was entered then all parts for all locations would be returned.
But how do I set the criteria up on the query to deal with this??
Problem is this...
How do I create the query so that if a parameter is or is not supplied?
Example;
Location could be London or Cardiff
Part could be specific or all
If London was selected and no part entered it would return all london parts
If no Location was entered but a part was the details of that part at both locations would be returned.
If neither location or part was entered then all parts for all locations would be returned.
But how do I set the criteria up on the query to deal with this??