D
Darren
We use a database to log all fault calls and need a better way to send to
the callers confirmation of the closure/solution.
At present the code below is used on the AfterUpdate event in a check box
chkResolved. The code relies of a report being generated and attached as
well as the mail body. Is there anyway a normal e-mail can be issued in
plain text without the need to attach reports?
***********************************
Dim SendDoc As String, UserMail As String, CallSheet As String, Subject As
String, Body As String, Solution As String
If Me.ID = 571 Then
' Check that the call was made by internal staff
SendDoc = "rpt_Call-Confirmation"
' Select the correct report layout for internal staff
Solution = DLookup("[Solution]", "qry_Mailing-Solution", "")
' Pull out the solution details for the case in hand using pre-defined query
UserMail = Me.txtUserEMail
Subject = "Call Closure: " & txtMFLRef
Body = "Your Reference: " & txtMFLRef & Chr(10) & "Our Reference: " &
Me.txtFaultNumber & Chr(10) & Chr(10) & "Your recent call to the IT Helpdesk
has now been resolved. The resolution details are as follows:" & Chr(10) &
Chr(10) & Solution
DoCmd.SendObject acReport, SendDoc, "HTML(*.html)", UserMail, "", "",
Subject, Body, False, ""
End If
***********************************
the callers confirmation of the closure/solution.
At present the code below is used on the AfterUpdate event in a check box
chkResolved. The code relies of a report being generated and attached as
well as the mail body. Is there anyway a normal e-mail can be issued in
plain text without the need to attach reports?
***********************************
Dim SendDoc As String, UserMail As String, CallSheet As String, Subject As
String, Body As String, Solution As String
If Me.ID = 571 Then
' Check that the call was made by internal staff
SendDoc = "rpt_Call-Confirmation"
' Select the correct report layout for internal staff
Solution = DLookup("[Solution]", "qry_Mailing-Solution", "")
' Pull out the solution details for the case in hand using pre-defined query
UserMail = Me.txtUserEMail
Subject = "Call Closure: " & txtMFLRef
Body = "Your Reference: " & txtMFLRef & Chr(10) & "Our Reference: " &
Me.txtFaultNumber & Chr(10) & Chr(10) & "Your recent call to the IT Helpdesk
has now been resolved. The resolution details are as follows:" & Chr(10) &
Chr(10) & Solution
DoCmd.SendObject acReport, SendDoc, "HTML(*.html)", UserMail, "", "",
Subject, Body, False, ""
End If
***********************************