I have been trying to use a command button in Access to print a report to the default printer without showing the printer selection screen first. I finally got it to do that using the following code that I found from someone else on your site...
The problem I am having is that each time it prints the report, it also prints out a screen shot of the form that the button is activated from. Can anyone help me so that only the report prints?
Code:
Private Sub Command29_Click() 2. DoCmd.OpenReport "rpt_stamp_label", acViewNormal, , , acHidden 3. DoCmd.PrintOut acPrintAll 4. DoCmd.Close acReport, "rpt_stamp_label" 5. 6. End Sub
Comment