It works on one of my PC's but not the other. The code is below:
Private Sub cmdEmail_Click()
On Error GoTo Err_cmdEmail_Click
Dim strBody As String, strSubject As String, strEmailAddress As String, strFirstName As String, strLastName As String
strEmailAddress = Forms!frmADREnquiriesList!Email
srtSubject = Me.lstTemplates.Column(2)
strBody = CStr(Me.lstTemplates.Column(3))
strBody = DLookup("Body", "tblEmailTemplates", "EmailTemplateID= " & Me.lstTemplates.Column(0))
strFirstName = Forms!frmADREnquiriesList!FirstName
strLastName = Forms!frmADREnquiriesList!LastName
strBody = "Hello " & strFirstName & Chr(10) & Chr(13) & Chr(10) & Chr(13) & strBody
DoCmd.SendObject , , , strEmailAddress, , , srtSubject, strBody
Exit_cmdEmail_Click:
' Exit the sub
Exit Sub
' Error Handler
Err_cmdEmail_Click:
' Check which error occured
Select Case Err
Case 2501 ' SendObject action was canceled
' Resume to the next line and continue
Resume Next
Case Else
' Display the error to the user
MsgBox Err.Description
' Exit the sub
Resume Exit_cmdEmail_Click
End Select
End Sub