Stopping a PDF file from opening when created
Posted on 2013-05-30
I have written a program in Access VBA that creates a PDF file from an Access report by issuing the following command:
DoCmd.OutputTo acOutputReport, "Master List", acFormatPDF, strStartDir & SessionNum & "_MasterList" & ".pdf", True
When it does this, however, the PDF file opens up in a new window as soon as it is created. I would like the file to be created without opening.
How can I accomplish this.