I have a query that retrieves contact details and uses values in another form as criteria to filter the results for a report. However I only want it to use criteria if a value is given for that detail.
For example I want a report to output all contacts from company "xyz" so I have set "xyz" as the company filter on the form. If I have not selected a company in the form I want the query to return all contacts - effectively the filter is switched off.
How do I do this?