Private Sub Command125_Click()
On Error Resume Next
If MsgBox("This will email all contacts in the database. Continue?", _
vbExclamation + vbYesNoCancel) = vbYes Then
Dim strMailList As String, rs As Recordset
Set rs = CurrentDb.OpenRecordset("Contacts", dbOpenDynaset) 'Should this be query or table?
With rs
.MoveFirst
Do
strMailList = strMailList & !EmailName & ";" 'changed email to EmailName
.MoveNext
Loop Until .EOF
If Not IsNull(!EmailName) Then
strMailList = strMailList & !EmailName & ";"
End If
.Close
End With
DoCmd.SendObject acSendReport, "Blank", acFormatSNP, strMailList, , , "Barn Bacon News Letter" _
, , True
End If
Set rs = Nothing
End Sub