A
AHopper
From a form I open a dialog box which is used to enter the
criteria to print a report. When the "Print" command
button is clicked the report begins to print.
Dim stDocName As String
stDocName = "AnalysisRevised"
DoCmd.Hourglass True
DoCmd.Echo False
DoCmd.OpenReport stDocName, acNormal, , "[JobNumber]=
[Forms]![AnalysisDialogBox]![JobNumber]"
DoCmd.Hourglass False
DoCmd.Echo True
The report contains code in the On Print event of both the
header and detail section. The report prints correctly,
however, there is a message box which appears(I believe it
is part of Microsoft Access print process because I did
not create it). The message indicates the print status (1
of 10 etc.) and it has a Cancel button. If the Cancel
button is pressed the application freezes and has to be
closed. I do not mind having the message box or the cancel
option, however, I would like to have it work properly so
the application does not freeze. If it will not work
properly, is there a way to have it not appear?
Thank you for your help
Allan
criteria to print a report. When the "Print" command
button is clicked the report begins to print.
Dim stDocName As String
stDocName = "AnalysisRevised"
DoCmd.Hourglass True
DoCmd.Echo False
DoCmd.OpenReport stDocName, acNormal, , "[JobNumber]=
[Forms]![AnalysisDialogBox]![JobNumber]"
DoCmd.Hourglass False
DoCmd.Echo True
The report contains code in the On Print event of both the
header and detail section. The report prints correctly,
however, there is a message box which appears(I believe it
is part of Microsoft Access print process because I did
not create it). The message indicates the print status (1
of 10 etc.) and it has a Cancel button. If the Cancel
button is pressed the application freezes and has to be
closed. I do not mind having the message box or the cancel
option, however, I would like to have it work properly so
the application does not freeze. If it will not work
properly, is there a way to have it not appear?
Thank you for your help
Allan