Can I add an Access report to the following e-mail? If so, how?
Dim OLApp As Outlook.application
Dim OLMsg As Outlook.MailItem
Set OLApp = New Outlook.application
Set OLMsg = OLApp.CreateItem(olMailItem)
With OLMsg
.Display
.To = "abc@xyz.com"
.Subject = "test email"
.body = "This is the body of the email."
.attachments.Add "M:\Checklist.docx"
.attachments.Add "M:\Checklist2.docx"
End With
Set OLMsg = Nothing
Set OLApp = Nothing
Dim OLApp As Outlook.application
Dim OLMsg As Outlook.MailItem
Set OLApp = New Outlook.application
Set OLMsg = OLApp.CreateItem(olMailItem)
With OLMsg
.Display
.To = "abc@xyz.com"
.Subject = "test email"
.body = "This is the body of the email."
.attachments.Add "M:\Checklist.docx"
.attachments.Add "M:\Checklist2.docx"
End With
Set OLMsg = Nothing
Set OLApp = Nothing