C
Christine
I have 4 reports that I want to print (no preview)one
after the other. The problem is, each report needs about 5
minutes to run before being sent to the printer. So when I
try to do this, I get an error that it cannot print a
document that is still running. How can I get the reports
to print after they have thoroughly completed running
without previewing. Here is my code: It is on open of the
first report, then calls the next 3...
Private Sub Report_Open(Cancel As Integer)
'In here is a lot of code creating temp tables to run
Report 1, then...
Call PrintAllReports
End Sub
Public Function PrintAllReports()
DoCmd.OpenReport "rpt2", acViewPreview
DoCmd.OpenReport "rpt3", acViewPreview
DoCmd.OpenReport "rpt4", acViewPreview
End Function
after the other. The problem is, each report needs about 5
minutes to run before being sent to the printer. So when I
try to do this, I get an error that it cannot print a
document that is still running. How can I get the reports
to print after they have thoroughly completed running
without previewing. Here is my code: It is on open of the
first report, then calls the next 3...
Private Sub Report_Open(Cancel As Integer)
'In here is a lot of code creating temp tables to run
Report 1, then...
Call PrintAllReports
End Sub
Public Function PrintAllReports()
DoCmd.OpenReport "rpt2", acViewPreview
DoCmd.OpenReport "rpt3", acViewPreview
DoCmd.OpenReport "rpt4", acViewPreview
End Function