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.
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"
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.