ChrisPanet
IS-IT--Management
Hi all
I have an IT Callout database which logs all calls to the IT Dept, i have a form where the call is logged and what i want to do is upon completion of the form it automatically sends an email to the caller.
I have it 90% done but what i cant do is get the email to send on its own, what i get is an email pop up with all the correct info in but i have to click send, any help on avoiding this??
Here's the code i have at the mo:
Private Sub Callout_Status_AfterUpdate()
Dim strrec, strsub, strbody
'Email Address
strrec = Me.Email
'Email Subject
strsub = "IT Callout Log"
'Break
strbody = Chr(13) & Chr(10)
'Email Body
strbody = strbody & "Your Callout Ref: " & Me.Callout_ID & Chr(13) & Chr(10) & Chr(13) & Chr(10)
strbody = strbody & "Status: " & Me.Callout_Status & Chr(13) & Chr(10) & Chr(13) & Chr(10)
strbody = strbody & "You have requested support with an issue regarding: " & Chr(13) & Chr(10) & Chr(13) & Chr(10)
'Email Record
DoCmd.SendObject , , , strrec, , , strsub, strbody
End Sub
I have an IT Callout database which logs all calls to the IT Dept, i have a form where the call is logged and what i want to do is upon completion of the form it automatically sends an email to the caller.
I have it 90% done but what i cant do is get the email to send on its own, what i get is an email pop up with all the correct info in but i have to click send, any help on avoiding this??
Here's the code i have at the mo:
Private Sub Callout_Status_AfterUpdate()
Dim strrec, strsub, strbody
'Email Address
strrec = Me.Email
'Email Subject
strsub = "IT Callout Log"
'Break
strbody = Chr(13) & Chr(10)
'Email Body
strbody = strbody & "Your Callout Ref: " & Me.Callout_ID & Chr(13) & Chr(10) & Chr(13) & Chr(10)
strbody = strbody & "Status: " & Me.Callout_Status & Chr(13) & Chr(10) & Chr(13) & Chr(10)
strbody = strbody & "You have requested support with an issue regarding: " & Chr(13) & Chr(10) & Chr(13) & Chr(10)
'Email Record
DoCmd.SendObject , , , strrec, , , strsub, strbody
End Sub