printing a report

JaredNJames

Registered User.
Local time
Today, 07:20
Joined
Jul 7, 2007
Messages
87
hi, i have button on a form which prints a report.

can anyone post the code required to get the report to print.

report name : qry_invoice

i just cant suss it out.

my current code is:
DoCmd.OpenReport "qry_invoice", acViewPreview, , , acHidden
DoCmd.RunCommand acCmdPrint

but that just prints the form.

Jared James
 
may have forgot to mention, i dont want the form to open. and i dont believe that code prints it, just opens it.
 
hi, nevermind sorted it now, you were right, just added hidden on the end.

thanks
jjames
 

Users who are viewing this thread

Back
Top Bottom