I've made a form to ask the user to choose filter options for a report (begging date,end date, client nº,etc). I've also created the query that looks at the form for the filter option and returns the results that will appear on the report
It works, but if any field in the form is left blank the query will show only the records were that field is blank.
How can I make the query filter only the non-blank field son the form, and assume that the blank fields mean: "show all records"
Ex: if in "product" field the user chooses "apple"
and in the "client" filed the user leaves it blank
I wanted the result to be : - look for apple for all clients,
instead of look for apple for client = blank
It works, but if any field in the form is left blank the query will show only the records were that field is blank.
How can I make the query filter only the non-blank field son the form, and assume that the blank fields mean: "show all records"
Ex: if in "product" field the user chooses "apple"
and in the "client" filed the user leaves it blank
I wanted the result to be : - look for apple for all clients,
instead of look for apple for client = blank