Hi all,
How can I change the RecordSource of a report being called in VBA using the doCmd.OutputTo creating a pdf file?
As others have mentioned, there isn't a way to create a where clause or filter on the following:
DoCmd.OutputTo acOutputReport, "ProjectSheet-Delay", acFormatPDF, strFileNameAndPath
I tried to trap the report load and open events where I know I can change the recordsource because the report is open - but the doCmd.OutputTo doesn't appear to actually open or load the report? Do I have to actually open the report and filter it?
Thanks for reading...
How can I change the RecordSource of a report being called in VBA using the doCmd.OutputTo creating a pdf file?
As others have mentioned, there isn't a way to create a where clause or filter on the following:
DoCmd.OutputTo acOutputReport, "ProjectSheet-Delay", acFormatPDF, strFileNameAndPath
I tried to trap the report load and open events where I know I can change the recordsource because the report is open - but the doCmd.OutputTo doesn't appear to actually open or load the report? Do I have to actually open the report and filter it?
Thanks for reading...