Hi all,
I have been searching and searching and searching.... I found several comments, and even one thread that looked promising, but no such luck. What I am trying to do is have access check the date of an audit that is due. If the date matches todays date it will send an email, through Groupwise, with the appropriate pdf form (path and file name created as string) to the project manager. I manage to get the email to come up for editing, , but it does not attach the pdf. below is the code that i am trying out...
Private Sub Form_Current()
Dim Path As String
Dim docname As String
Dim Attchmnt As String
Path = "C:\Documents and Settings\Audit Forms\"
docname = [TaskDescription] & ".pdf"
Attchmnt = Path & docname
If [AuditDate] = Date Then
DoCmd.SendObject , , , "me@myemail.com", , , "Audit Due", " Attached is the Audit tool for the " & [TaskDescription] & " Audit. Please print, complete and return to me as soon as possilbe.", -1, Attchmnt
End If
End Sub
Thank you for all your wonderful insights!
Autumn
Aim for the moon, for even if we miss, we are still among the stars.
I have been searching and searching and searching.... I found several comments, and even one thread that looked promising, but no such luck. What I am trying to do is have access check the date of an audit that is due. If the date matches todays date it will send an email, through Groupwise, with the appropriate pdf form (path and file name created as string) to the project manager. I manage to get the email to come up for editing, , but it does not attach the pdf. below is the code that i am trying out...
Private Sub Form_Current()
Dim Path As String
Dim docname As String
Dim Attchmnt As String
Path = "C:\Documents and Settings\Audit Forms\"
docname = [TaskDescription] & ".pdf"
Attchmnt = Path & docname
If [AuditDate] = Date Then
DoCmd.SendObject , , , "me@myemail.com", , , "Audit Due", " Attached is the Audit tool for the " & [TaskDescription] & " Audit. Please print, complete and return to me as soon as possilbe.", -1, Attchmnt
End If
End Sub
Thank you for all your wonderful insights!
Autumn
Aim for the moon, for even if we miss, we are still among the stars.