Is it possible to print my access reports to a (or multiple) PDF files rather than printing them one at a time? I would LOVE to have code that does that!
I have a setup that allows me to print to PDF but it is has a pop-up box so it is not 100% automated.
The report is setup to have Printer Name as "Adobe PDFWriter".
The VBA is:
'open form in preview
DoCmd.OpenReport DocName, A_PREVIEW
'save report to PDF file
Reports(DocName).Caption = sDocName
DoCmd.PrintOut
DoCmd.Close acReport, DocName
Where DocName is the name of the report
sDocName is the save as PDF file name
You can put a loop and re-assign the DocName and sDocName to print out all the reports in your list.
The only problem is when the DoCmd.PrintOut line is executed, a windows confirmation screen pops up and you have to confirm "save" to continue.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.