Error when canceling the print dialog

  • Thread starter Rafael Bélanger via AccessMonster.com
  • Start date
R

Rafael Bélanger via AccessMonster.com

I have a problem with printing a report, when the print dialog pops up and
you decide to print theres no problem but when i cancel, it generates a error
message because the runcommand was stopped. Am i forced to print or is there
a way to cancel?

the lines are
DoCmd.OpenReport stDocName, acViewPreview, , stLinkCriteria
DoCmd.RunCommand acCmdPrint

Also, im wondering if there is a way to make the dialog appear without having
to open the report so i can just print right away, i dont need to see it.
 

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