Hi everyone,
Normally if i was emailing a report I would use the following code to send a snapshot of it:
------------------------------------------------
DoCmd.SendObject acSendReport, "rptPurchaseOrder", acFormatSNP, strTo, strCC, , strSubject, strMessage
-------------------------------------------------
However, this time around i want to send the email and ask for a read receipt as well. Normally if i was doing this I would use the code:
---------------------------------------------
Set objOutlook = CreateObject("Outlook.Application")
Set objOutlookMsg = objOutlook.CreateItem(olMailItem)
With objOutlookMsg
.To = strTo
'.CC = msgCC
.Subject = strSubject
.Body = strMessage
.ReadReceiptRequested = True
.Importance = olImportanceHigh
.Display
End With
---------------------------------------------
But I've never used the above code and tried to attach a report to it.
So my question is, can I use the second piece of code and attach a report to the email as a snapshot?
Thanks in advance for any help you can give me
GPM
Normally if i was emailing a report I would use the following code to send a snapshot of it:
------------------------------------------------
DoCmd.SendObject acSendReport, "rptPurchaseOrder", acFormatSNP, strTo, strCC, , strSubject, strMessage
-------------------------------------------------
However, this time around i want to send the email and ask for a read receipt as well. Normally if i was doing this I would use the code:
---------------------------------------------
Set objOutlook = CreateObject("Outlook.Application")
Set objOutlookMsg = objOutlook.CreateItem(olMailItem)
With objOutlookMsg
.To = strTo
'.CC = msgCC
.Subject = strSubject
.Body = strMessage
.ReadReceiptRequested = True
.Importance = olImportanceHigh
.Display
End With
---------------------------------------------
But I've never used the above code and tried to attach a report to it.
So my question is, can I use the second piece of code and attach a report to the email as a snapshot?
Thanks in advance for any help you can give me
GPM