Link to home
Start Free TrialLog in
Avatar of cansevin
cansevin

asked on

Previewing Report

The below code is opening the pdf. How do I stop it from opening it? I want it to do everything else but open it.

Chris


DoCmd.OpenReport "CustomerInvoicesIndividual", acViewPreview, , , acHidden
DoCmd.OutputTo acOutputReport, "CustomerInvoicesIndividual", acFormatPDF, "C:\Invoices\CustomerInvoices.pdf", True
DoCmd.Close acReport, "CustomerInvoicesIndividual"

Open in new window

ASKER CERTIFIED SOLUTION
Avatar of Gustav Brock
Gustav Brock
Flag of Denmark image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of cansevin
cansevin

ASKER

Awesome! Thanks Gustav. Any chance you can try to help me with my other question regarding the email problem? It's an open question right now.