K
Ken Smith
I have an application that uses the following Code to send an email to
several people. For security purposes their email addresses have been
replaced by EmailAddr1, etc.
DoCmd.SendObject acSendReport, "Surety Release Request", acFormatSNP, _
"EmailAddr1", "EmailAddr2", "EmailAddr3", _
"Surety Release Request" & Forms("Request Letter of Credit
Release").ProjectRef, _
"Facilities covered by the surety for the subject project
have been final inspected and found satisfactory. Please release the surety
instrument described in the attachment.", intSeeOutlook
Rather than use hardcoded email addresses in the Code, I want to be able to
manage the email address collection saved in a single record table that uses
three text fields corresponding to Outlook's "To", "CC" and "BCC" fields. I'd
like the Code to lookup the email address string from the table.
Presuming the table is named tblEmail with fields named "EmailAddr1",
"EmailAddr2", "EmailAddr3",
what would the code look like where I now use email addresses instead of:
"EmailAddr1", "EmailAddr2", "EmailAddr3",
Thanks
several people. For security purposes their email addresses have been
replaced by EmailAddr1, etc.
DoCmd.SendObject acSendReport, "Surety Release Request", acFormatSNP, _
"EmailAddr1", "EmailAddr2", "EmailAddr3", _
"Surety Release Request" & Forms("Request Letter of Credit
Release").ProjectRef, _
"Facilities covered by the surety for the subject project
have been final inspected and found satisfactory. Please release the surety
instrument described in the attachment.", intSeeOutlook
Rather than use hardcoded email addresses in the Code, I want to be able to
manage the email address collection saved in a single record table that uses
three text fields corresponding to Outlook's "To", "CC" and "BCC" fields. I'd
like the Code to lookup the email address string from the table.
Presuming the table is named tblEmail with fields named "EmailAddr1",
"EmailAddr2", "EmailAddr3",
what would the code look like where I now use email addresses instead of:
"EmailAddr1", "EmailAddr2", "EmailAddr3",
Thanks