Hi, Jim.
When
I do this only the first report is shown in preview mode, is there a way to
pop-up multiple print preview screens?
If you are running Access 2002 or 2003, then you could open the report in
dialog mode:
DoCmd.OpenReport "rptReport1", acViewPreview, , "[Name] = 'Jones'",
acDialog
DoCmd.OpenReport "rptReport1", acViewPreview, , "[Floor] = 7", acDialog
The code will stop running while the first report is open. As soon as the
user closes it, the second report will be opened.
To get a similar effect in an earlier version of Access, you could make a
copy of the report and open the reports in succession. Open the reports in
reverse order, since the last report opened will be "on top" for the user to
view. For example:
DoCmd.OpenReport "rptReport1", acViewPreview, , "[Floor] = 7"
DoCmd.OpenReport "rptReport1Copy", acViewPreview, , "[Name] = 'Jones'
HTH.
Gunny
See
http://www.QBuilt.com for all your database needs.
See
http://www.Access.QBuilt.com for Microsoft Access tips.
(Please remove ZERO_SPAM from my reply E-mail address so that a message will
be forwarded to me.)
- - -
If my answer has helped you, please sign in and answer yes to the question
"Did this post answer your question?" at the bottom of the message, which
adds your question and the answers to the database of answers. Remember that
questions answered the quickest are often from those who have a history of
rewarding the contributors who have taken the time to answer questions
correctly.
Jim said:
I’m trying to call a single report using different filter criteria. For
example DoCmd.OpenReport "rptReport1", acViewPreview, , "[Name] = 'Jones'"
and then DoCmd.OpenReport "rptReport1", acViewPreview, , "[Floor] = 7". When
I do this only the first report is shown in preview mode, is there a way to
pop-up multiple print preview screens?
Thanks in advance,
Jim