View Full Version : Printer Prompt


funderburgh
09-22-2008, 11:34 AM
Is there a way to enable a "printer prompt" dialog box out of a report? When I print directly from Access I am given a prompt box, where I could select a printer, but in my reports the print executes without a prompt. I am using DoCmd OpenReport from VBA for printing.

ByteMyzer
09-22-2008, 11:56 AM
The following VBA command sequence should do what you want:

DoCmd.SelectObject acReport, "MyReport"
DoCmd.RunCommand acCmdPrint

funderburgh
09-22-2008, 12:55 PM
Very cool, thank you for sharing your wisdom.