How do I use the results of an Access Query "Query Name", which are a bunch of e-mail addresses, to send out an e-mail within the following code?
___________________________________________________________
Sub Mass_Email()
Dim NewMail As Object
Dim objmail As Object
Set NewMail = CreateObject("Outlook.Application")
Set objmail = NewMail.CreateItem(olMailItem)
With objmail
.to = "HERE'S WHERE I WANT TO PUT THE RESULTS OF THE QUERY"
.Subject = "Health Insurance Rates for Me"
.Body = "Whatever"
.Attachments.Add "Whatever I define.pdf"
.Send
End With
Set NewMail = Nothing
Set objmail = Nothing
End Sub
__________________________________________________________
___________________________________________________________
Sub Mass_Email()
Dim NewMail As Object
Dim objmail As Object
Set NewMail = CreateObject("Outlook.Application")
Set objmail = NewMail.CreateItem(olMailItem)
With objmail
.to = "HERE'S WHERE I WANT TO PUT THE RESULTS OF THE QUERY"
.Subject = "Health Insurance Rates for Me"
.Body = "Whatever"
.Attachments.Add "Whatever I define.pdf"
.Send
End With
Set NewMail = Nothing
Set objmail = Nothing
End Sub
__________________________________________________________