B
_Bigred
Hello Guys,
I have a form with command buttons set to print the designated reports.
I have used the following code as the "On Click" event
DoCmd.OpenReport "Unit Mail List", acViewPreview
On Error Resume Next
DoCmd.RunCommand acCmdPrint
Dim strRptName
strRptName = "Unit Mail List"
DoCmd.SelectObject acReport, strRptName, False
The code works fine, it gives me the printer dialog box so the user can
select the printer, #copies etc... but once it kicks the report to the
printer it opens the designated report???
How can I just have the code prompt the user for (printer, #Copies etc..)
but NOT open the report?
TIA,
_Bigred
I have a form with command buttons set to print the designated reports.
I have used the following code as the "On Click" event
DoCmd.OpenReport "Unit Mail List", acViewPreview
On Error Resume Next
DoCmd.RunCommand acCmdPrint
Dim strRptName
strRptName = "Unit Mail List"
DoCmd.SelectObject acReport, strRptName, False
The code works fine, it gives me the printer dialog box so the user can
select the printer, #copies etc... but once it kicks the report to the
printer it opens the designated report???
How can I just have the code prompt the user for (printer, #Copies etc..)
but NOT open the report?
TIA,
_Bigred