M Michael Kintner Jan 18, 2004 #1 How can I tell a report to print 5 copies? VB Code Please.... Thank you in advance for any help... (smile) Mike
How can I tell a report to print 5 copies? VB Code Please.... Thank you in advance for any help... (smile) Mike
S Sandy Jan 18, 2004 #2 Mike, DoCmd.RunCommand acCmdPrint will bring up the print dialog where you can set whatever number of copies you want.
Mike, DoCmd.RunCommand acCmdPrint will bring up the print dialog where you can set whatever number of copies you want.
V Van T. Dinh Jan 19, 2004 #3 If you use Access 2002 or later, check Access VB Help on the Property "Copies" of the Printer Object. Code sample is in the Access Help topic. For earlier Access version, a fair bit harder (but possible) since there is no Printer object. The easy way is as PC Datasheet recommends. HTH Van T. Dinh MVP (Access)
If you use Access 2002 or later, check Access VB Help on the Property "Copies" of the Printer Object. Code sample is in the Access Help topic. For earlier Access version, a fair bit harder (but possible) since there is no Printer object. The easy way is as PC Datasheet recommends. HTH Van T. Dinh MVP (Access)
? ___ Jan 19, 2004 #4 Put the following code in the OnClick event of your print butto changing "YourReportName" to the name of the report you want to print times... Code ------------------- Dim looptimes, count As Integer looptimes = 5 For count = 1 To looptimes DoCmd.OpenReport "YourReportName", acNormal, "" Next count
Put the following code in the OnClick event of your print butto changing "YourReportName" to the name of the report you want to print times... Code ------------------- Dim looptimes, count As Integer looptimes = 5 For count = 1 To looptimes DoCmd.OpenReport "YourReportName", acNormal, "" Next count
V Van T. Dinh Jan 20, 2004 #5 Yes but this means that Access has to process the Report 5 times rather than 1. For some complicated Reports, it adds unnecessary delays.
Yes but this means that Access has to process the Report 5 times rather than 1. For some complicated Reports, it adds unnecessary delays.