Well, I know that these registry settings can be used with some versions, but I don't think all. You can change them each time you print based on your reports:
Names the file:
HKCU\Software\Adobe\Acrobat\PDFWriter, PDFileName, C:\YourReport.pdf
Prevents file naming dialog from appearing:
HKCU\Software\Adobe\Acrobat\PDFWriter, bExecViewer, 0
Also, this will prevent the dialog in V6:
HKCU\Software\Adobe\Acrobat\PDFMaker\6.0\Global\Se ttings\PromptForPDFFilename, 0
You can make registry settings from within Access. Don't forget to set them back when you are done printing.
Then if you want to name your files, you could capture all your client IDs, then use the UBound for a loop counter, and then loop through all their names, use their names to name the files, and then maybe append a date as part of the filename, etc.
I hope this will get you started. In can be done.
mmcdonal
|