I have created a report whose record source is a parameter query. The report opens from a command button on a form.
When the report opens and the query runs, the "Enter Parameter Value" box appears and the user is asked to enter a start date and an end date for the range. I want the user-selected range to appear in the header of the report. I have been able to do this by inserting text boxes in the header with their Control Sources set to the parameters in the query.
My problem arises when the user selects a start date for which there is no data - i.e, the user selects Start Date 1/02/2002 and End Date 1/04/2002 when the earliest data in the table is 1/10/2002. How can I get the start and end dates chosen by the user to appear in the header even when there is no data that matches the selection?
When the report opens and the query runs, the "Enter Parameter Value" box appears and the user is asked to enter a start date and an end date for the range. I want the user-selected range to appear in the header of the report. I have been able to do this by inserting text boxes in the header with their Control Sources set to the parameters in the query.
My problem arises when the user selects a start date for which there is no data - i.e, the user selects Start Date 1/02/2002 and End Date 1/04/2002 when the earliest data in the table is 1/10/2002. How can I get the start and end dates chosen by the user to appear in the header even when there is no data that matches the selection?