I keep getting a "type mismatch" error. I initially thought it was because of a bad email address but after deleting all the records but two (good email addresses), I still get the error. What could be causing this?
Dim rs As Recordset
Dim vRecipientList As String
Set rs = CurrentDb.OpenRecordset("SELECT * FROM qryCritiques1")
If rs.RecordCount > 0 Then
rs.MoveFirst
Do
If Not IsNull(rs!email) Then
vRecipientList = vRecipientList & rs!email & ";"
rs.MoveNext
Else
rs.MoveNext
End If
Loop Until rs.EOF
DoCmd.SendObject acSendNoObject, , acFormatTXT, rs!email, , , "Customer Service Critique", "Sir/Ma'am," & vbCr & vbCr & _
"According to our blah, blah.", False
Dim rs As Recordset
Dim vRecipientList As String
Set rs = CurrentDb.OpenRecordset("SELECT * FROM qryCritiques1")
If rs.RecordCount > 0 Then
rs.MoveFirst
Do
If Not IsNull(rs!email) Then
vRecipientList = vRecipientList & rs!email & ";"
rs.MoveNext
Else
rs.MoveNext
End If
Loop Until rs.EOF
DoCmd.SendObject acSendNoObject, , acFormatTXT, rs!email, , , "Customer Service Critique", "Sir/Ma'am," & vbCr & vbCr & _
"According to our blah, blah.", False