C
Chuck
I have a single report that is used to display the results of a form. The
record source of the report may change depending which check box is selected
in the form. The record source is passed to the report via OpenArgs
(DoCmd.OpenReport "MyReport", acViewNormal, ,,, Args)
To print all instances of the report I use the following code in the form:
DoCmd.OpenReport "MyReport", acViewNormal, ,,, Args1
DoCmd.OpenReport "MyReport", acViewNormal, ,,, Args2
DoCmd.OpenReport "MyReport", acViewNormal, ,,, Args3
This works fine when printing directly to the printer.
Now I want to preview all the reports before printing:
DoCmd.OpenReport "MyReport", acViewPreview ,,, Args1
DoCmd.OpenReport "MyReport", acViewPreview ,,, Args2
DoCmd.OpenReport "MyReport", acViewPreview ,,, Args3
As expected, this only opens the last report in print preview (since the
same report is used for all three reports, the first one is overriden by the
second one, the second one by the third, and only the last one shows up).
How can I get the same report to open more than once in print preview mode ?
Is there a way to create a copy of the report on the fly ?
Thanks
record source of the report may change depending which check box is selected
in the form. The record source is passed to the report via OpenArgs
(DoCmd.OpenReport "MyReport", acViewNormal, ,,, Args)
To print all instances of the report I use the following code in the form:
DoCmd.OpenReport "MyReport", acViewNormal, ,,, Args1
DoCmd.OpenReport "MyReport", acViewNormal, ,,, Args2
DoCmd.OpenReport "MyReport", acViewNormal, ,,, Args3
This works fine when printing directly to the printer.
Now I want to preview all the reports before printing:
DoCmd.OpenReport "MyReport", acViewPreview ,,, Args1
DoCmd.OpenReport "MyReport", acViewPreview ,,, Args2
DoCmd.OpenReport "MyReport", acViewPreview ,,, Args3
As expected, this only opens the last report in print preview (since the
same report is used for all three reports, the first one is overriden by the
second one, the second one by the third, and only the last one shows up).
How can I get the same report to open more than once in print preview mode ?
Is there a way to create a copy of the report on the fly ?
Thanks