Hillbillie
IS-IT--Management
I am sending bulk emails as attached snap, "thanks to this site", now I want to add the date the emails was sent to each donor. Here is my code.
Private Sub SendEmailButton_Click()
Dim rs As DAO.Recordset
Dim strSQL As String
strSQL = "SELECT * FROM emailquery WHERE email = -1"
Set rs = CurrentDb.OpenRecordset(strSQL)
With rs
Do While Not rs.EOF
Me.email1 = ![Email Address]
If ![Email Address] <> "" Then DoCmd.SendObject acSendReport, "WCRC Letter", acFormatSNP, ![Email Address], , , !eSubject, Me.eMessage & Me.eMessageFooter, False
.MoveNext
Loop
End With
End Sub
-------------------
I will add a "EmailSentDate" field to post the date in.
Thanks,
Larry
Private Sub SendEmailButton_Click()
Dim rs As DAO.Recordset
Dim strSQL As String
strSQL = "SELECT * FROM emailquery WHERE email = -1"
Set rs = CurrentDb.OpenRecordset(strSQL)
With rs
Do While Not rs.EOF
Me.email1 = ![Email Address]
If ![Email Address] <> "" Then DoCmd.SendObject acSendReport, "WCRC Letter", acFormatSNP, ![Email Address], , , !eSubject, Me.eMessage & Me.eMessageFooter, False
.MoveNext
Loop
End With
End Sub
-------------------
I will add a "EmailSentDate" field to post the date in.
Thanks,
Larry