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.