PC Review


Reply
Thread Tools Rate Thread

Disable Outlook Security Notification

 
 
=?Utf-8?B?TWF0dA==?=
Guest
Posts: n/a
 
      25th Jun 2004

Hi,

I have a database which includes a table of "contacts." I'd like users to be able to, by pushing a button on frmContacts, create a new email in Outlook addressed to the current contact (i.e., the contact whose information currently appears in frmContacts).

The code I've provided below seems to create the mail item I need; however, it also results in an Outlook security notice: "A program is trying to access e-mail addresses you have stored in Outlook. Do you want to allow this?"

Two questions:
1) How do I disable this notification?
2) Why does Outlook think the code is trying to access the user's Outlook addressbook? The code is only creating a new email item and populating the recipient list with an e-mail address from Access (not Outlook).

Thanks in advance for any assistance,

Matt

[Win2000/Access2002/Outlook2002]

'------------------
Private Sub cmdEmail_Click()
Dim OutlookApp As Outlook.Application
Dim NewInspector As Outlook.Inspector
Dim NewMailItem As Outlook.MailItem

Set OutlookApp = CreateObject("Outlook.Application")
Set NewMailItem = OutlookApp.CreateItem(olMailItem)
NewMailItem.Recipients.Add (Me.ContEmail)
Set NewInspector = NewMailItem.GetInspector
NewInspector.Activate

Set NewInspector = Nothing
Set NewMailItem = Nothing
Set OutlookApp = Nothing

End Sub
 
Reply With Quote
 
 
 
 
Alex Dybenko
Guest
Posts: n/a
 
      26th Jun 2004
look at this one:
http://www.dimastr.com/redemption/

--
Alex Dybenko (MVP)
http://Alex.Dybenko.com
http://www.PointLtd.com


"Matt" <(E-Mail Removed)> wrote in message
news:2C59C162-4AB2-43FA-9268-(E-Mail Removed)...
>
> Hi,
>
> I have a database which includes a table of "contacts." I'd like users to

be able to, by pushing a button on frmContacts, create a new email in
Outlook addressed to the current contact (i.e., the contact whose
information currently appears in frmContacts).
>
> The code I've provided below seems to create the mail item I need;

however, it also results in an Outlook security notice: "A program is trying
to access e-mail addresses you have stored in Outlook. Do you want to allow
this?"
>
> Two questions:
> 1) How do I disable this notification?
> 2) Why does Outlook think the code is trying to access the user's Outlook

addressbook? The code is only creating a new email item and populating the
recipient list with an e-mail address from Access (not Outlook).
>
> Thanks in advance for any assistance,
>
> Matt
>
> [Win2000/Access2002/Outlook2002]
>
> '------------------
> Private Sub cmdEmail_Click()
> Dim OutlookApp As Outlook.Application
> Dim NewInspector As Outlook.Inspector
> Dim NewMailItem As Outlook.MailItem
>
> Set OutlookApp = CreateObject("Outlook.Application")
> Set NewMailItem = OutlookApp.CreateItem(olMailItem)
> NewMailItem.Recipients.Add (Me.ContEmail)
> Set NewInspector = NewMailItem.GetInspector
> NewInspector.Activate
>
> Set NewInspector = Nothing
> Set NewMailItem = Nothing
> Set OutlookApp = Nothing
>
> End Sub



 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
how to disable outlook security messages swap Microsoft Outlook VBA Programming 1 17th Apr 2009 02:49 PM
Re: Disable outlook security? Cor Ligthert[MVP] Microsoft Dot NET 0 16th Apr 2009 06:49 AM
Disable Outlook Security Pietro Microsoft Access 7 13th Jun 2008 05:22 PM
Canceled Meeting Notification Disable - Outlook XP Ailish Microsoft Outlook Discussion 0 9th May 2008 12:51 PM
Disable Instant Search Notification in Outlook 2007 =?Utf-8?B?SW5hcmk=?= Microsoft Outlook Installation 3 9th Feb 2007 11:53 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 04:52 AM.