I am trying to print my userform.
Code:
Forms("frm_manager_stats_NEW").Printer.Orientation = acPRORLandscape
DoCmd.PrintOut , 1, 1, acLow, 1, False
I have also tried these lines of code:
DoCmd.PrintOut acPrintAll
and
DoCmd.PrintOut
The Error: When I press the command button to run the code Access debugs and gives me the option to close or debug, regardless which I press the application then closes.
What is happening?