S
Shirley
My report has department and division level. Under one department, there
could be many divisions.
I have set up a form with combo boxes. Once the user selects the department
and division he/she wants to print, he/she can click on a command button to
open the report.
A filter query was set up in the background to filter the records.
Here comes my problem. It works fine if I select both department and
division. But I would like to print out the whole department if I leave the
division combo box blank. The filter doesn't work. It shows errors in the
report.
The query is like this:
Under department criteria:
[Forms]![frm_DataEntry]![ComboSelectDept]
Under division criteria:
IIf([Forms]![frm_DataEntry]![ComboSelectDiv] Is
Null,"*",[Forms]![frm_DataEntry]![ComboSelectDiv])
It seems that "*" doesn't work in this case. Can anybody help me? Thanks a
lot.
could be many divisions.
I have set up a form with combo boxes. Once the user selects the department
and division he/she wants to print, he/she can click on a command button to
open the report.
A filter query was set up in the background to filter the records.
Here comes my problem. It works fine if I select both department and
division. But I would like to print out the whole department if I leave the
division combo box blank. The filter doesn't work. It shows errors in the
report.
The query is like this:
Under department criteria:
[Forms]![frm_DataEntry]![ComboSelectDept]
Under division criteria:
IIf([Forms]![frm_DataEntry]![ComboSelectDiv] Is
Null,"*",[Forms]![frm_DataEntry]![ComboSelectDiv])
It seems that "*" doesn't work in this case. Can anybody help me? Thanks a
lot.