Can anybody tell me how to include my email addresses from a query to the bcc field of a new email.
I created a query to select my email addresses, I tryied using the VBA code below to extract the email addresses and insert them in a SendObject command, but nothing happens. Please Help.
Dim db As DAO.Database
Dim rst As DAO.Recordset
Dim rcpts As String
Set db = CurrentDb
Set rst = db.OpenRecordse t("EmailInfo Clients")
rcpts = ""
With rst
.MoveFirst
Do Until .EOF
rcpts = rcpts & .Fields("Email_ Name") & ","
.MoveNext
Loop
End With
DoCmd.SendObjec t , , , "info@sharpeway group.ca", , rcpts, , , True
rst.Close
I created a query to select my email addresses, I tryied using the VBA code below to extract the email addresses and insert them in a SendObject command, but nothing happens. Please Help.
Dim db As DAO.Database
Dim rst As DAO.Recordset
Dim rcpts As String
Set db = CurrentDb
Set rst = db.OpenRecordse t("EmailInfo Clients")
rcpts = ""
With rst
.MoveFirst
Do Until .EOF
rcpts = rcpts & .Fields("Email_ Name") & ","
.MoveNext
Loop
End With
DoCmd.SendObjec t , , , "info@sharpeway group.ca", , rcpts, , , True
rst.Close
Comment