Print Dialog Box

  • Thread starter Thread starter jeff
  • Start date Start date
J

jeff

My question is:
How do I access (using code) the Print Dialog Box?
For example if you have a form and would like to print the form or report,
you can go to FILE, then PRINT, when you click on print it will give you a
dialog box for options, how many pages, the printer that you want to use...
etc. How do you get this dialog box through code?

Thanks is advance,
 
The following commands should be what you're looking for.

DoCmd.RunCommand acCmdPageSetup 'Page Setup Dialog
DoCmd.DoMenuItem A_FORMBAR, A_FILE, 6 'Print Dialog
 

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

Back
Top