Set Print Orientation in Access VBA

J

jhrBanker

I've added a button to an Access Form to print the form. However, it prints
in Portrait and won't fit on the page. I've added the code "Let
Printer.Orientation=vbPRORLandscape", but am receiving the error "Invalid
Procedure call or argument". I want this to work for the Default Printer.
Any suggestions? Full code is:

Private Sub cmdPrintForm_Click()
Let Printer.Orientation = vbPRORLandscape
DoCmd.PrintOut
End Sub

Would appreciate any help. Thanks
 
Top