G
Guest
We have some VBA code that generates and automatically sends emails..the code
looks like...
Dim mobjoutlook, mobjcurrentmessage
Set mobjoutlook = CreateObject("Outlook.application")
email_form = email_form_name
Set mobjcurrentmessage = mobjoutlook.Createitemfromtemplate(email_form)
send_to = customer.HyperlinkAddress
mobjcurrentmessage.Recipients.Add (send_to)
mobjcurrentmessage.send
it works great, however...when it executes the .send, we get a warning from
Outlook that another program is attempting to access Outlook and we have to
allow the access for 1 minute to 10 minutes. My question is...is there a way
to eliminate this warning? I've tried docmd.setwarnings false before the
..send and docmd.setwarnings true right after the send, but the message
persists.
Please help...we need to send emails to many people, (100+) at a time and
it's not feasible to have someone sit there answering the same question over
and over.
Thanks in advance for your help!
looks like...
Dim mobjoutlook, mobjcurrentmessage
Set mobjoutlook = CreateObject("Outlook.application")
email_form = email_form_name
Set mobjcurrentmessage = mobjoutlook.Createitemfromtemplate(email_form)
send_to = customer.HyperlinkAddress
mobjcurrentmessage.Recipients.Add (send_to)
mobjcurrentmessage.send
it works great, however...when it executes the .send, we get a warning from
Outlook that another program is attempting to access Outlook and we have to
allow the access for 1 minute to 10 minutes. My question is...is there a way
to eliminate this warning? I've tried docmd.setwarnings false before the
..send and docmd.setwarnings true right after the send, but the message
persists.
Please help...we need to send emails to many people, (100+) at a time and
it's not feasible to have someone sit there answering the same question over
and over.
Thanks in advance for your help!