skilche1
Registered User.
- Local time
- Today, 17:12
- Joined
- Apr 29, 2003
- Messages
- 226
I am having troubles adding email addresses to my CC box in my email. I am able to get the emails to populate into the "To:" space. Now I know I have the DLookup accessing the same record, but how can I make it so the CC_List puts the emails into the CC of the email?
Thanks
Thanks

Code:
Dim DailyReport As Integer
Dim EmailRecipiantsList As String
Dim RecipiantName As String
Dim CC_List As String
Dim sAttachmentName As String
Dim sCaption As String
Dim sEmailBody As String
Dim FileName1 As String
Dim FilePath1 As String
Dim strNow1 As String
strNow1 = cboDate
strNow1 = Replace(strNow1, "/", "-")
strNow1 = Replace(strNow1, ":", "_")
EmailRecipiantsList = DLookup("Notification_email_dept", "qryReportNotification", "ReportNotification_ID")
CC_List = DLookup("Notification_email_dept", "qryReportNotification", "ReportNotification_ID")
sCurrentReport = "rptDailyReport"
sAttachmentName = "Daily Incoming Inspection Report" & " - " & FileName & strNow1
sCaption = "Daily Incoming Inspection Report" & " - " & FileName & strNow1 & ".pdf"
sEmailBody = "Hi " & RecipiantName & "," & Chr(13) & Chr(13) & "Please see attached The Daily Inspection Report for" & strNow1
DoCmd.OpenReport sCurrentReport, acViewPreview, , acHidden
Reports(DailyReport).Caption = sAttachmentName
DoCmd.Close acReport, sCurrentReport
DoCmd.SendObject acSendReport, sCurrentReport, acFormatPDF, EmailRecipiantsList, CC_List, , sCaption, sEmailBody