tomking505
New member
- Local time
- Today, 01:06
- Joined
- Oct 7, 2010
- Messages
- 5
Thanks to Bob, my program works perfectly.
Now, rather than sending the reports to the printer, I want to save them as PDFs. I'm generating hundreds of these, so I need to specify the filename of the PDF.
I need to turn this:
Into this:
Problem is, there is no place for the WHERE.
Without the WHERE, instead of printing hundreds of individual PDFs, it prints everything in one giant PDF, hundreds of times.
How can I trade OutputTo for OpenReport?
Thanks very kindly in advance!
Tom
Now, rather than sending the reports to the printer, I want to save them as PDFs. I'm generating hundreds of these, so I need to specify the filename of the PDF.
I need to turn this:
Code:
DoCmd.OpenReport "myReport", acViewPreview, , "[CclientID] =" & stJustOne, acDialog
Into this:
Code:
DoCmd.OutputTo acOutputReport, "myReport", acFormatPDF,
Problem is, there is no place for the WHERE.
Without the WHERE, instead of printing hundreds of individual PDFs, it prints everything in one giant PDF, hundreds of times.
How can I trade OutputTo for OpenReport?
Thanks very kindly in advance!
Tom