Hi
I am trying to print a report that is based on a query. To select the records I want to print I need to enter 3 criteria
project no
category
phase
When I input these criteria it allows me to preview the appropriate report, on pressing the preview button.
Question 1: at present I use combo boxes - on the query the report is based on I include references to those Combo boxes in the criteria section of the query builder - ie [Forms]![Fmcriteria]![Proj_no]
This works fine as long there is there a value selected in each box. If I leave one of the criteria blank it returns an empty report. What I require is that when one of these fields is left blank it shows me all all records in that field not none!
How do I do that?
And is this the best way of doing what I am doing - it seems fairly clumsy to me? Please any help??
Question2: If there are no records how do I display a message box to say try again?
Thanks
I am trying to print a report that is based on a query. To select the records I want to print I need to enter 3 criteria
project no
category
phase
When I input these criteria it allows me to preview the appropriate report, on pressing the preview button.
Question 1: at present I use combo boxes - on the query the report is based on I include references to those Combo boxes in the criteria section of the query builder - ie [Forms]![Fmcriteria]![Proj_no]
This works fine as long there is there a value selected in each box. If I leave one of the criteria blank it returns an empty report. What I require is that when one of these fields is left blank it shows me all all records in that field not none!
How do I do that?
And is this the best way of doing what I am doing - it seems fairly clumsy to me? Please any help??
Question2: If there are no records how do I display a message box to say try again?
Thanks