George said:
The query that the report is based on is based on three queries each
asking for the same date ranage. The main query works fine asking only
once for the values.
George,
Use a Form to enter the parameter values.
Change the query parameter from something like:
Between [Enter Start Date] and [Enter End Date]
to
Between forms!FormName!StartDate And forms!FormName!EndDate
As long as the form is open when running the report, you will not be
asked for the parameters.
Open the Form in the Report's Open Event:
DoCmd.OpenForm "FormName", , , , , acDialog
Close the form in the Report's Close event.
DoCmd.Close acForm, "FormName"