P
Paul3rd
Hello,
I'm having a problem with a PrintOut command in my application.
The following code works correctly until I add the arguments for printing.
DoCmd.PrintOut works until I add acPages,1,1,acLow,1,False -
Then I get an error message saying the application can't find the form
"BNTEVal" referred to in a macro expression or Visual Basic Code.
Thanks in advance for any help.
Paul
Private Sub Test_Click()
On Error GoTo Err_Test_Click
Forms("BNTEVal").Printer.Orientation = acPRORLandscape
DoCmd.PrintOut acPages, 1, 1, acLow, 1, False
Exit_Test_Click:
Exit Sub
Err_Test_Click:
MsgBox Err.Description
Resume Exit_Test_Click
End Sub
I'm having a problem with a PrintOut command in my application.
The following code works correctly until I add the arguments for printing.
DoCmd.PrintOut works until I add acPages,1,1,acLow,1,False -
Then I get an error message saying the application can't find the form
"BNTEVal" referred to in a macro expression or Visual Basic Code.
Thanks in advance for any help.
Paul
Private Sub Test_Click()
On Error GoTo Err_Test_Click
Forms("BNTEVal").Printer.Orientation = acPRORLandscape
DoCmd.PrintOut acPages, 1, 1, acLow, 1, False
Exit_Test_Click:
Exit Sub
Err_Test_Click:
MsgBox Err.Description
Resume Exit_Test_Click
End Sub