M
Miskacee
I'm trying to send emails from Access via Outlook. I am missing something
but can't seem to figure it out. I have several email addresses that I'd
like to use. The body/subject lines are the same.
Thank you!
My code is below:
Private Sub cmdOutlook_Click()
Dim objOutlook As Outlook.Application
Dim objEmail As Outlook.MailItem
Set objOutlook = CreateObject("Outlook.application")
Set objEmail = objOutlook.CreateItem(olMailItem)
'
With objEmail
'--------------
If emailaddress = False Then
Do Until emailaddress.EOF
.To = Me.emailaddress
.Subject = Me.txtSubject & " - " & Me.employee
.Body = Me.txtEmail
.Send
Loop
End With
but can't seem to figure it out. I have several email addresses that I'd
like to use. The body/subject lines are the same.
Thank you!
My code is below:
Private Sub cmdOutlook_Click()
Dim objOutlook As Outlook.Application
Dim objEmail As Outlook.MailItem
Set objOutlook = CreateObject("Outlook.application")
Set objEmail = objOutlook.CreateItem(olMailItem)
'
With objEmail
'--------------
If emailaddress = False Then
Do Until emailaddress.EOF
.To = Me.emailaddress
.Subject = Me.txtSubject & " - " & Me.employee
.Body = Me.txtEmail
.Send
Loop
End With