Code to preview multiple instances of a form

T

terry w

Greetings to all
I have a form with a button cmdPrint. The click event has code including
DoCmd.OpenReport strDocName,acViewPreview
The report prints properly when clicked.

I have added another button called cmdPrint_FullSet. When clicked, I use
criteria in the form's controls to cycle through a set of reports that should
print. This cycling also works just fine. In each cycle, a 'Call
cmdPrint_Click' statement is executed.

My problem is that ony the first report preview is shown. I'm guessing this
is because they would all have the same file name. Is there a way to have
multiple instances of the report in Preview mode?

Terry W.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top