D
Don V
Here's the code I have.
What am I doing wrong?
I'm attempting to change the printer from a command button
It works but prints out on my default printer and does not change the
printer to Winfax.
Private Sub cmdFax_Click()
On Error GoTo Err_cmdFax_Click
Set Application.Printer = Application.Printers("WinFax")
DoCmd.PrintOut acSelection
Exit_cmdFax_Click:
Exit Sub
Err_cmdFax_Click:
MsgBox Err.Description
Resume Exit_cmdFax_Click
End Sub
Don
What am I doing wrong?
I'm attempting to change the printer from a command button
It works but prints out on my default printer and does not change the
printer to Winfax.
Private Sub cmdFax_Click()
On Error GoTo Err_cmdFax_Click
Set Application.Printer = Application.Printers("WinFax")
DoCmd.PrintOut acSelection
Exit_cmdFax_Click:
Exit Sub
Err_cmdFax_Click:
MsgBox Err.Description
Resume Exit_cmdFax_Click
End Sub
Don