Bring up the Print dialog box when printing a report.

M

Michael Wong

There is this command in Vba:

DoCmd.OpenReport View:=acViewNormal

But this will immediately print the report.

How can I bring up a dialog box to allow user to change printing settings
before printing?
 
S

Steve Schapel

Michael,

Try this...
DoCmd.OpenReport "ReportName", acViewPreview
DoCmd.RunCommand acCmdPrint

- Steve Schapel, Microsoft Access MVP
 
M

Michael Wong

Thanks a lot, just need to add one more line...

Steve Schapel said:
Michael,

Try this...
DoCmd.OpenReport "ReportName", acViewPreview
DoCmd.RunCommand acCmdPrint

- Steve Schapel, Microsoft Access MVP
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top