We help IT Professionals succeed at work.
Get Started

Error: A program is trying to access email addresses you have stored in outlook. Do you want to allow this?

nubee
nubee asked
on
156,023 Views
Last Modified: 2012-02-02
I am using Outlook 2000 SR-1
I have created a form that reads Outlook address book using MAPI. Whenever I open that Form I get a message
" A program is trying to access email addresses you have stored in outlook. Do you want to allow this? Then I Have some choices: I can deny or I can allow for 1,2,5,10minutes. If I dont select 1 minute, I am not able to do anything with the form. Only if I did select the check box "Allow for 1 0r 2 minutes" then only I am able to get the program to work.
MOST IMPORTANT I am only person who has ever seen this kind of message, everybody else who is using this form in our office is not getting any errors. Please help me. Let me know if I can provide you with any other information

Set olemSession = Application.CreateObject("MAPI.Session")
ReturnCode = olemSession.Logon( Application.GetNameSpace("MAPI").CurrentUser, "", False, False, 0 )
Set user = olemSession.CurrentUser
Set UserFrom = Item.UserProperties.Find("ReqEmail")

 
Comment
Watch Question
CERTIFIED EXPERT
Commented:
This problem has been solved!
Unlock 2 Answers and 42 Comments.
See Answers
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE