Show all values in a combo box in a report
Hiya folks!
I have a report which shows a list of all menu items sold in a restaurant. Each menu item belongs to a specific category, such as fish dishes, meat dishes and desserts.
Before accessing the report, the user is asked to select the dates for the period that he wants to view in the report, and the specific categories that he wants to view.
I have been able to do all of this. The problem is, let us assume that the user wants to view all the categories in the report (i.e. the user selects the dates, but leaves the combo blank. This is what I tried in the query of the "category" field in the report (frmSelectDatesSingle is the form where the user would select the data he wishes to view):
[Forms]![frmSelectDatesSingle]![Category]
I also tried the following but I am not sure what to put in the "True" part of the statement:
iif([Forms]![frmSelectDatesSingle]![Category]=Null;*****;[Forms]![frmSelectDatesSingle]![Category])
Hope you can help!
Thank you!!!
|