Code to open built-in dialog boxes in Access

G

Guest

Using Office 2003 and Windows XP;

Could someone please post generic example code to programmatically open a
built-in MS-Access dialog box?

In particular I would like to be able to open "Page Setup" and "Print". When
I say Print, I mean the dialog box that allows a user to select their
printer, etc.

Thanks much in advance.
 
R

Rick Brandt

XP said:
Using Office 2003 and Windows XP;

Could someone please post generic example code to programmatically
open a built-in MS-Access dialog box?

In particular I would like to be able to open "Page Setup" and
"Print". When I say Print, I mean the dialog box that allows a user
to select their printer, etc.

Thanks much in advance.

DoCmd.RunCommand acCmdPageSetup
DoCmd.RunCommand acCmdPrint

Both of the above will only work in the proper context.
 

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