stDocName = "Report 1"
DoCmd.OpenReport "Report 1", acViewNormal
So where do I put the DoCmd.RunCommand acCmdPrint. If I
put it before or after, it gives me an error....
Dim stDocName As String
stDocName = "Report 1"
DoCmd.OpenReport "Report 1", acViewPreview
On Error Resume Next '2501 error occurs when you hit cancel
DoCmd.RunCommand acCmdPrint
One last question
I have about 19 reports to print, and I was trying to set
it up so that they all printed off one button. Is there
anyway to set the print setting without previewing each
report.
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.