Name correctly the attachments

myhnews

Registered User.
Local time
Today, 14:41
Joined
Dec 30, 2004
Messages
53
I'm currently using

Code:
DoCmd.SendObject acSendReport, "rptInvoice", acFormatSNP,
stemail, , , "OrderId ID# " & txtorderNo, strBody

How can I manage to have the name of the attachment should be the
orderNo, not the default report name?

Thank you
Joe
 
Naming attachments

Hi, I'm also stuck with the same problem.
Solutions suggest renaming the caption of the report.
I'm not able to get it work though.
Any inputs highly appreciated.
Thanks,
Sudhir.
 
Thanks

Thanks MicroE,
I totally used you're concept.
DoCmd.DoMenuItem acFormBar, acRecordsMenu, acSaveRecord, , acMenuVer70
DoCmd.CopyObject , "rptOrder" & [InputID], acReport, "rptOrder"
stDocName = "rptOrder" & [InputID]
DoCmd.SendObject acReport, stDocName, acFormatRTF, "sudspark@gmail.com", "", , "New JDA Order", "New JDA Order"

That was a huge help!
 

Users who are viewing this thread

Back
Top Bottom