ted.martin
Registered User.
- Local time
- Today, 12:11
- Joined
- Sep 24, 2004
- Messages
- 743
eMail and PDF update v2007 is great
use Access 2007 and the PDF add-in. What used to be a huge chunk of code from Lebans can now be replaced by just 2 lines e.g.
DoCmd.SendObject acReport, strReportName, "PDFFormat(*.pdf)", strQuotationeMail, "", "", _
"Quotation from " & DLookup("([Company])", "Company Details"), DLookup("[emailbodytext]", "emailbodytext", "[ID]=1"), False, ""
emailbodytext is a table with one field that contains the eMail message. If you want to view/amend this before the above runs, just use this line too
DoCmd.OpenForm "F-emailbodytext", , , , , acDialog
use Access 2007 and the PDF add-in. What used to be a huge chunk of code from Lebans can now be replaced by just 2 lines e.g.
DoCmd.SendObject acReport, strReportName, "PDFFormat(*.pdf)", strQuotationeMail, "", "", _
"Quotation from " & DLookup("([Company])", "Company Details"), DLookup("[emailbodytext]", "emailbodytext", "[ID]=1"), False, ""
emailbodytext is a table with one field that contains the eMail message. If you want to view/amend this before the above runs, just use this line too
DoCmd.OpenForm "F-emailbodytext", , , , , acDialog