I have a query to a report run from a "Report" form. The query is linked to the form for things like data range and other specific information that a user may like to view in the reports.
If the user wants all the data in a date range, how can I omit the link/criteria for the other fields in the form linked to the query?
I may have just confused myself on this, however I have the form open up with "All" in these other fields from the begining and allow a user to select specific data criteria for the report if desired. If I select specific data from each of these field on the form, it works fine. The problem arrises when I want the report to show all data by leaving the fields to "All" on the form.
I've worked around this before with IF statements, etc. in the code to go to a different report when "ALL" is in the field, but then I have to maintain multiple reports when changes are made. I would have to think that I can use just this one query/report to do all I need it to, but cannot come up with a solution. Your help and assistance is much appreciated!
Thanks!
If the user wants all the data in a date range, how can I omit the link/criteria for the other fields in the form linked to the query?
I may have just confused myself on this, however I have the form open up with "All" in these other fields from the begining and allow a user to select specific data criteria for the report if desired. If I select specific data from each of these field on the form, it works fine. The problem arrises when I want the report to show all data by leaving the fields to "All" on the form.
I've worked around this before with IF statements, etc. in the code to go to a different report when "ALL" is in the field, but then I have to maintain multiple reports when changes are made. I would have to think that I can use just this one query/report to do all I need it to, but cannot come up with a solution. Your help and assistance is much appreciated!
Thanks!