View Full Version : print multiple copies of a report from a form


stalw
11-06-2001, 04:39 AM
hi
i use a command button on a form to print a report:
the code for this as we all know is:
DoCmd.OpenReport "myreport", acNormal
How do i print multiple copies of this report
Currently i am writing the above line thrice to generate 3 copies,
Is there another way
thanks
s talwalkar

ott
11-06-2001, 08:22 AM
intNumOfReports = 3

For i = 1 to intNumOfReports
DoCmd.OpenReport "myreport
Next i

Or you can use the PrintOut Method of the DoCmd Object:

DoCmd.PrintOut acPrintAll, , , , 3

ott
11-06-2001, 08:22 AM
intNumOfReports = 3

For i = 1 to intNumOfReports
DoCmd.OpenReport "myreport
Next i

Or you can use the PrintOut Method of the DoCmd Object:

DoCmd.PrintOut acPrintAll, , , , 3

ott
11-06-2001, 08:22 AM
intNumOfReports = 3

For i = 1 to intNumOfReports
DoCmd.OpenReport "myreport
Next i

Or you can use the PrintOut Method of the DoCmd Object:

DoCmd.PrintOut acPrintAll, , , , 3