Calling the Page Setup PopUp from VBA..

  • Thread starter Thread starter Brett Davis
  • Start date Start date
B

Brett Davis

Hello..

I am using Access 2003 and I have a button on my form that I will have the
user click to bring up the Page Setup popup screen just like you would do if
you chose File -> Page Setup. Does anyone have the VBA code to accomplish
this?

Please advise...

Cheers!
Brett
 
Try,

docmd.RunCommand acCmdPageSetup

Also, do not forget to trap error 2501 should the user cancel the operation.
 
Thanks Daniel! When I put the code behind the button and I click on the
button, I get the following error message:
Run-Time error '2585':
This action can't be carried out while processing a form or report event.

How do I get around this?

Please advise..

Thanks,
Brett
 

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