Code to open built-in dialog boxes in Access

  • Thread starter Thread starter Guest
  • Start date Start date
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.
 
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.
 
Back
Top