Code to preview multiple instances of a form

  • Thread starter Thread starter terry w
  • Start date Start date
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.
 
Back
Top