Print dialogue box

f9073341

Registered User.
Local time
Today, 15:51
Joined
Mar 7, 2009
Messages
27
Hi guys,

I'm trying to print a report without actually viewing it and I've been messing around with this statement:

'DoCmd.RunCommand acCmdPrint'

Is there anyway you can pass a report name to this command so it knows what to print (if printing what you're not viewing)?

I would simply preview the report and bring up the print dialogue box once opened, but the dialogue box ALWAYS comes up first!

Many Thanks
 
What about DoCmd.OpenReport?
 
Use DoCmd.OpenReport "report name", acViewNormal,

The name of your report must be enclosed in double quotes.
 

Users who are viewing this thread

Back
Top Bottom