I'm using Access 97. In the OnClick event of a button I have the code
below. I looks at txtEmail and sends an e-mail message without
further action from the user (user does not have to click Send as he
would if he used DoCmd.SendObject.) However, I want to attach a
report in Snapshot format. How would I modify my code to include a
report?
Thank you,
JD
Dim strEmail As String
Dim strMsg As String
Dim oLook As Object
Dim oMail As Object
strEmail = Me!txtEMail
Set oLook = CreateObject("Outlook.Application")
Set oMail = oLook.createitem(0)
With oMail
.to = strEmail
.body = "Your vacation and/or personal holidays have been
approved or rejected. See attached."
.Subject = "Vacation and/or Personal Holiday Request"
.Send
End With