Hi All
I am running a module out of Access, and want to include the results of two queries in the body of the email, as well as attaching an attachment.
Currently I have -
If audit = "Y" Then
DoCmd.Close acQuery, "AUDITSUMFINAL"
DoCmd.Close acQuery, "AUDITSUMFINALCUST"
Set App = CreateObject("Outlook.Application")
Set Park = App.CreateItem(0)
Edate2 = DLookup("DAY_DATE", "ENDDATE")
With Park
.Subject = "Park Garages Weekly WE " & Edate2
.To = customeramiladdress@domain.com
.CC = "account managers"
.Attachments.Add "blah blah blah" & Edate & ".csv"
*******************************************************
.display
End With
End If
**** indicates where I think there should be a line of code that inputs the results of the audit queries, but I have no idea what it could be.
Anyone on the know?
Happy Friday
Claris =]
I am running a module out of Access, and want to include the results of two queries in the body of the email, as well as attaching an attachment.
Currently I have -
If audit = "Y" Then
DoCmd.Close acQuery, "AUDITSUMFINAL"
DoCmd.Close acQuery, "AUDITSUMFINALCUST"
Set App = CreateObject("Outlook.Application")
Set Park = App.CreateItem(0)
Edate2 = DLookup("DAY_DATE", "ENDDATE")
With Park
.Subject = "Park Garages Weekly WE " & Edate2
.To = customeramiladdress@domain.com
.CC = "account managers"
.Attachments.Add "blah blah blah" & Edate & ".csv"
*******************************************************
.display
End With
End If
**** indicates where I think there should be a line of code that inputs the results of the audit queries, but I have no idea what it could be.
Anyone on the know?
Happy Friday
Claris =]