removing the print box

JaredNJames

Registered User.
Local time
Today, 11:37
Joined
Jul 7, 2007
Messages
87
hi, when i press print on a form, a report is printed based on the info in the form.

is there any way to get the report to print when the print button is pressed, without have the print dialogue box appear?

jjames
 
Usually

DoCmd.OpenReport "YourReportNameHere", acViewNormal

would do just that.
 
i dont want the report to open
 
You'll have to open it to print it. But, if you use that code it shouldn't stay open, it just opens, prints, and closes. If the recordset is small enough you can barely see it happen. And, if it doesn't just put in

DoCmd.Close acReport, "YourReportNameHere", acSaveNo

right after the open and it will take care of it.
 

Users who are viewing this thread

Back
Top Bottom