I have this code below its giving me the RUntime 2295 error. Unknown message recipients. I have check all email addresses and they are fine. Everything else works except when it gets to Outlook and do not send email. Can you take a look let me know what you think? I did a Debug Print but didnt understand how to do it.
Private Sub Command9_Click()
Dim rst As DAO.Recordset
Dim strEmailAddress
Set rst = CurrentDb.OpenRecordset("T_Inspectors")
Do Until rst.EOF
strEmailAddress = strEmailAddress & rst("Email") & ","
rst.MoveNext
Loop
strEmailAddress = Left(strEmailAddress, Len(strEmailAddress) - 1)
DoCmd.SendObject acSendReport, "R_WeeklyDispatch_Today", acFormatPDF, strEmailAddress, _
, , "Job Alert", "Please see current jobs", True
rst.Close
Set rst = Nothing
End Sub
Private Sub Command9_Click()
Dim rst As DAO.Recordset
Dim strEmailAddress
Set rst = CurrentDb.OpenRecordset("T_Inspectors")
Do Until rst.EOF
strEmailAddress = strEmailAddress & rst("Email") & ","
rst.MoveNext
Loop
strEmailAddress = Left(strEmailAddress, Len(strEmailAddress) - 1)
DoCmd.SendObject acSendReport, "R_WeeklyDispatch_Today", acFormatPDF, strEmailAddress, _
, , "Job Alert", "Please see current jobs", True
rst.Close
Set rst = Nothing
End Sub