Query specific object to send as PDF

wrweaver

Registered User.
Local time
Today, 14:23
Joined
Feb 26, 2013
Messages
75
I wanted to send a copy of a report in pdf format to an email address and I thought the code would be:

DoCmd.SendObject acSendReport, "WorkOrderFinalR", acFormatPDF, "email@email.com", , , "New Work Order TEST", , False

And it works, except it sends me all of the reports, not just the one from the form that was submitted. But there's no place for a where condition in the code. My query feeding the report I want to send is attached in the picture.
 

Attachments

  • 20130314_072029.jpg
    20130314_072029.jpg
    101.1 KB · Views: 77
Worked perfectly! I'm forever in your debt for all your help pbaldy! A million thanks!
 
No problemo! I use that method or adaptations of it often.
 

Users who are viewing this thread

Back
Top Bottom