display all recods in report

deekras

Registered User.
Local time
Today, 04:41
Joined
Jun 14, 2000
Messages
169
i have a form where the user can select which category to display in report. how can i set it up for the user to select one category or all categories for the report?
 
Just base the report off of a query that links to the form where they select the category. You can write the criteria in the query to pick the selected category or to run normally if the field is left null (select all categories). I believe the syntax you would write in the criteria of your query is below:

Like IIf(IsNull([Forms]![Form]![Category]),"*",[Forms]![Form]![Category])
 

Users who are viewing this thread

Back
Top Bottom