Hi John,
I presume you are entering your start and end dates directly into the query
criteria.
If you create a small form with unbound text boxes and a command button to
run the report. (Or put them on an existing form)
Enter your dates in these boxes.
In the criteria in your query you can referece these form fields - something
like
Forms![YourForm]![Start Date]
Forms![YourForm]![End Date]
Then on the report create 2 text boxes with recordsources referring to these
form fields
=Forms![YourForm]![Start Date]
=Forms![YourForm]![End Date]
Just remember, the form must be left open to read the criteria.
If you want to preview the report, use your report command button to render
the form invisible.
You can use the OnClose property of the report to make the form visible again.
I'm sure some of the more experienced guys on the forum will come up with a
better idea, but this has worked well for me.
Andy
I have a report base on a query with date parameters (beggining date and
ending date). How can I have those date show on the report?
Thanks,
John