G
Greg in Detroit
I am having trouble with the openreport method, and don't know if I'm trying
to do something that can't be done, or if I have a syntax problem.
The basic question is: should I be able to open a report without a
recordsource property defined, then name the underlying query in visual
basic?
I'm using the code: DoCmd.OpenReport "MyReport", acPreview, "MyQuery"
This returns a report with no records.
If I set the report's Record Source Property to MyQuery, it works fine. But
I want to use the same report with various queries.
Thanks for whatever help is given.
Greg in Detroit
to do something that can't be done, or if I have a syntax problem.
The basic question is: should I be able to open a report without a
recordsource property defined, then name the underlying query in visual
basic?
I'm using the code: DoCmd.OpenReport "MyReport", acPreview, "MyQuery"
This returns a report with no records.
If I set the report's Record Source Property to MyQuery, it works fine. But
I want to use the same report with various queries.
Thanks for whatever help is given.
Greg in Detroit