Bar_NZ
Registered User.
- Local time
- Tomorrow, 09:46
- Joined
- Aug 14, 2012
- Messages
- 48
Hi all, I'm trying to get Access to send out one email to multiple recipients using Bcc and pull the email address from a table.
I do not want to send any attachments directly from Access, these will be attached, once the e-mail opens and is ready to send.
Table Name: Just_Email
Column Name: Email
I have tried this code and get a compile error:
Private Sub Command4_Click()
Dim rst As DAO.Recordset
Dim strEmailAddress
Set rst = CurrentDb.OpenRecordset("Just_Email")
Do Until rst.EOF
strEmailAddress = strEmailAddress & rst("Email") & ";"
rst.MoveNext
Loop
strEmailAddress = Left(strEmailAddress, Len(strEmailAddress) - 1)
DoCmd.SendObject , , acFormatRTF, strEmailAddress, _
, , strSubject, strEMailMsg, False, False
rst.Close
Set rst = Nothing
End Sub
Anyone's assistance would be greatly appreciated, I have been Goggling this for about a week now :banghead:.
I do not want to send any attachments directly from Access, these will be attached, once the e-mail opens and is ready to send.
Table Name: Just_Email
Column Name: Email
I have tried this code and get a compile error:
Private Sub Command4_Click()
Dim rst As DAO.Recordset
Dim strEmailAddress
Set rst = CurrentDb.OpenRecordset("Just_Email")
Do Until rst.EOF
strEmailAddress = strEmailAddress & rst("Email") & ";"
rst.MoveNext
Loop
strEmailAddress = Left(strEmailAddress, Len(strEmailAddress) - 1)
DoCmd.SendObject , , acFormatRTF, strEmailAddress, _
, , strSubject, strEMailMsg, False, False
rst.Close
Set rst = Nothing
End Sub
Anyone's assistance would be greatly appreciated, I have been Goggling this for about a week now :banghead:.