T
Tim
I try to send mass emails in my VBA codes, but I got the above error message.
Can you help me to debug it. Here are the codes.
Dim email1 As String
email1 = "(e-mail address removed)" + ";" + "(e-mail address removed)" + ";" + "(e-mail address removed)" + ";" +
"(e-mail address removed)" + ";" + "(e-mail address removed)" + ";" + "(e-mail address removed)"
Dim email2 As String
email2 = "(e-mail address removed)" + ";" + "(e-mail address removed)" + ";" + "(e-mail address removed)"
Dim strEmail As String
Dim strE As String
Dim rstE As DAO.Recordset
strE = "SELECT * FROM qryPullDataForEmails"
Set rstE = DB.OpenRecordset(strE, dbOpenDynaset)
rstE.MoveFirst
Do Until rstE.EOF
strEmail = rstE("email") + ";" + strEmail
rstE.MoveNext
Loop
rstE.Close
Set rstE = Nothing
Can you help me to debug it. Here are the codes.
Dim email1 As String
email1 = "(e-mail address removed)" + ";" + "(e-mail address removed)" + ";" + "(e-mail address removed)" + ";" +
"(e-mail address removed)" + ";" + "(e-mail address removed)" + ";" + "(e-mail address removed)"
Dim email2 As String
email2 = "(e-mail address removed)" + ";" + "(e-mail address removed)" + ";" + "(e-mail address removed)"
Dim strEmail As String
Dim strE As String
Dim rstE As DAO.Recordset
strE = "SELECT * FROM qryPullDataForEmails"
Set rstE = DB.OpenRecordset(strE, dbOpenDynaset)
rstE.MoveFirst
Do Until rstE.EOF
strEmail = rstE("email") + ";" + strEmail
rstE.MoveNext
Loop
rstE.Close
Set rstE = Nothing