Daniel Jacobs said:
Is it possible to dynamically change a report's datasource
(from one query to another) based on the value of a user
entered parameter?
You can change a report's Record Source in the Open Event of the Report. You
might have passed that string, or a reference to it, in OpenArgs in the most
recent three versions of Access, or you might launch the Report from a Form
with DoCmd.OpenReport, and pick up the string for the Record source by
referring to the Form.
On the other hand, what you describe elsewhere often lends itself very well
to use of the Filter, or WhereCondition arguments of the DoCmd.OpenReport.
However, you should be aware that those arguments both result in a "filter"
being used on the Report, and, for very large volumes of data, replacing the
Record Source may be more efficient, especially if you are linked to backend
tables in a server database.
Larry Linson
Microsoft Office Access MVP