G
Guest
I have a form which is tied to a table. The form has the following fields:
To, Cc, Bcc, Subject and Message_text. There's a send button on the form
wich kicks-off the following code:
Dim oOLApp As Outlook.Application
Dim oOLDoc As Outlook.MailItem
Set oOLApp = New Outlook.Application
Set oOLDoc = oOLApp.CreateItem(olMailItem)
With oOLDoc
.To = "(e-mail address removed);" & Me.To
.Cc = Me.Cc
.Bcc = Me.Bcc
.Subject = Me.Subject
.Body = Me.Message_Text
End With
oOLDoc.Display
oOLDoc.Send
My problem is that, while the email does display in edit mode, an Microsoft
Office Outlook popup box also apprears advising: "A program is trying to
automatically send emails on your befalf...", followed by Yes, No, Help
buttons.
The popup box is not allowing the user to send the email and freezes the
application.
Any suggestions on how I go about suppressing that error message.
Thanks,
Manuel
To, Cc, Bcc, Subject and Message_text. There's a send button on the form
wich kicks-off the following code:
Dim oOLApp As Outlook.Application
Dim oOLDoc As Outlook.MailItem
Set oOLApp = New Outlook.Application
Set oOLDoc = oOLApp.CreateItem(olMailItem)
With oOLDoc
.To = "(e-mail address removed);" & Me.To
.Cc = Me.Cc
.Bcc = Me.Bcc
.Subject = Me.Subject
.Body = Me.Message_Text
End With
oOLDoc.Display
oOLDoc.Send
My problem is that, while the email does display in edit mode, an Microsoft
Office Outlook popup box also apprears advising: "A program is trying to
automatically send emails on your befalf...", followed by Yes, No, Help
buttons.
The popup box is not allowing the user to send the email and freezes the
application.
Any suggestions on how I go about suppressing that error message.
Thanks,
Manuel