Hi Peter,
I have no objections, and I'm pretty sure that Stephen would be fine with it
too. Thank You for taking this inititive!
Jeff: In your last reply, you wrote:
"That's along the lines of what I want to do, but more specifically, I
want
to run the ReportToPDF, which generates the PDF, and send the file that
was just created without actually saving it to the disk."
I don't think this is possible to use the ReportToPDF functionality, without
first writing the file to the hard drive, if only as a temporary copy. My
code is designed to send files that can be found on the hard drive. One could
add code to delete the .pdf file after having sent it, and this would
probably be fairly reliable, but, if Access happened to crash for some reason
after writing the file, but before the deletion code was run, then you could
end up with the .pdf file remaining on the hard drive. Depending on the
method that you are using for sending e-mail, you would likely end up with a
copy on the hard drive anyways, in the Sent Items folder of Outlook.
You might also want to look into using Win2PDF (
http://win2pdf.com). It can
be programmed using VBA code. Another Access MVP, who uses this product, is
very happy with it.
Tom Wickerath
Microsoft Access MVP
https://mvp.support.microsoft.com/profile/Tom
http://www.access.qbuilt.com/html/expert_contributors.html
__________________________________________