473,402 Members | 2,072 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,402 software developers and data experts.

Help with outlook Access "allow access e-mail addresses"

Hello,
I have developed a Access application that needs to read mail from
Outlook, versions on Access and outlook are 2003. In the code i use
mapi to connect to outlook. When i tries to read the subject of a
message outlook displays "A program is trying to access e-mail
adresses you have stored in Outlook. Do you want to allow this."
And then i can allow access for max 10 minutes.
My application is use scheduled statupm creating reports without
man-macine interferance so i need to disable this message.

I have tried with modifiing registry
KEY_CURRENT_USER\Software\Microsoft\Office\10.0\Ou tlook\Security
(change 10.0 to 9.0 for Outlook 2000 SP3 or to 11.0 for Outlook 2003)
Under that key, add a new string value named Level1Remove. and added .
mdb
but this doesn't work.

I would prefer a solution where I can change the application or change
some registry settings, that only affects access applications. The last
resort would be to install a program that disconnects the security for
all types of programs.

Thanks Mikael Sjoeblom

Following are cut outs of the application.

Public Sub OutlookReadNewMail(intComputerGroup As Integer)
On Error GoTo Err_OutlookReadNewMail

Dim olApp As OutLook.Application
Dim Olmapi As OutLook.NameSpace
Dim Olfolder As OutLook.MAPIFolder
Dim olMail As Object 'Have to late bind as appointments e.t.c screw it
up
Dim OlItems As OutLook.Items
..
..
..

'Create a connection to outlook
Set olApp = CreateObject("Outlook.Application")
Set Olmapi = olApp.GetNamespace("MAPI")
..
..
..

Set OlItems = Olfolder.Items

'For each mail in the collection check the subject line and process
accordingly
For Each olMail In OlItems
If olMail.UnRead = True Then
olMail.Body ' This line activates trying
to access e-mail adressess
' Can't understand why
because it is the body
' not the e-mail adressess.

..
..
..

Mar 22 '06 #1
2 10503
On 22 Mar 2006 03:32:58 -0800, "mi*********@hotmail.com"
<mi*********@hotmail.com> wrote:

AFAIK the message can only be disabled if Outlook is running through exchange
server. This *feature* has virtually made Outlook useless as a mail client for
automated emails. (Some would say it always was).

Hello,
I have developed a Access application that needs to read mail from
Outlook, versions on Access and outlook are 2003. In the code i use
mapi to connect to outlook. When i tries to read the subject of a
message outlook displays "A program is trying to access e-mail
adresses you have stored in Outlook. Do you want to allow this."
And then i can allow access for max 10 minutes.
My application is use scheduled statupm creating reports without
man-macine interferance so i need to disable this message.

I have tried with modifiing registry
KEY_CURRENT_USER\Software\Microsoft\Office\10.0\O utlook\Security
(change 10.0 to 9.0 for Outlook 2000 SP3 or to 11.0 for Outlook 2003)
Under that key, add a new string value named Level1Remove. and added .
mdb
but this doesn't work.

I would prefer a solution where I can change the application or change
some registry settings, that only affects access applications. The last
resort would be to install a program that disconnects the security for
all types of programs.

Thanks Mikael Sjoeblom

Following are cut outs of the application.

Public Sub OutlookReadNewMail(intComputerGroup As Integer)
On Error GoTo Err_OutlookReadNewMail

Dim olApp As OutLook.Application
Dim Olmapi As OutLook.NameSpace
Dim Olfolder As OutLook.MAPIFolder
Dim olMail As Object 'Have to late bind as appointments e.t.c screw it
up
Dim OlItems As OutLook.Items
.
.
.

'Create a connection to outlook
Set olApp = CreateObject("Outlook.Application")
Set Olmapi = olApp.GetNamespace("MAPI")
.
.
.

Set OlItems = Olfolder.Items

'For each mail in the collection check the subject line and process
accordingly
For Each olMail In OlItems
If olMail.UnRead = True Then
olMail.Body ' This line activates trying
to access e-mail adressess
' Can't understand why
because it is the body
' not the e-mail adressess.

.
.
.


Wayne Gillespie
Gosford NSW Australia
Mar 22 '06 #2
Wayne Gillespie wrote:
On 22 Mar 2006 03:32:58 -0800, "mi*********@hotmail.com"
<mi*********@hotmail.com> wrote:

AFAIK the message can only be disabled if Outlook is running through exchange
server. This *feature* has virtually made Outlook useless as a mail client for
automated emails. (Some would say it always was).
Hello,
I have developed a Access application that needs to read mail from
Outlook, versions on Access and outlook are 2003. In the code i use
mapi to connect to outlook. When i tries to read the subject of a
message outlook displays "A program is trying to access e-mail
adresses you have stored in Outlook. Do you want to allow this."
And then i can allow access for max 10 minutes.
My application is use scheduled statupm creating reports without
man-macine interferance so i need to disable this message.

I have tried with modifiing registry
KEY_CURRENT_USER\Software\Microsoft\Office\10.0\ Outlook\Security
(change 10.0 to 9.0 for Outlook 2000 SP3 or to 11.0 for Outlook 2003)
Under that key, add a new string value named Level1Remove. and added .
mdb
but this doesn't work.

I would prefer a solution where I can change the application or change
some registry settings, that only affects access applications. The last
resort would be to install a program that disconnects the security for
all types of programs.

Thanks Mikael Sjoeblom

Following are cut outs of the application.

Public Sub OutlookReadNewMail(intComputerGroup As Integer)
On Error GoTo Err_OutlookReadNewMail

Dim olApp As OutLook.Application
Dim Olmapi As OutLook.NameSpace
Dim Olfolder As OutLook.MAPIFolder
Dim olMail As Object 'Have to late bind as appointments e.t.c screw it
up
Dim OlItems As OutLook.Items
.
.
.

'Create a connection to outlook
Set olApp = CreateObject("Outlook.Application")
Set Olmapi = olApp.GetNamespace("MAPI")
.
.
.

Set OlItems = Olfolder.Items

'For each mail in the collection check the subject line and process
accordingly
For Each olMail In OlItems
If olMail.UnRead = True Then
olMail.Body ' This line activates trying
to access e-mail adressess
' Can't understand why
because it is the body
' not the e-mail adressess.

.
.
.

Wayne Gillespie
Gosford NSW Australia

Search for freeware "Express click YES"

Bob
Mar 26 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Sean Anderson | last post by:
It seems I lack an understanding of varible (sorry, field) scope and need human feedback. I have read 5 books on java and everything in the help of my development tool says this should work fine,...
0
by: Bob Sanford | last post by:
I am working with php scripting under an apache-based web service in Windows. The "allow service to interact with desktop" feature is NOT checked for this service, and I don't want it to be. But I...
3
by: Prince Kumar | last post by:
When running LOAD with "ALLOW READ ACCESS", I get the following error if select is running againt the table (isolation UR). load.sql --------- db2 load from /u02/data/dly_d040817_test.dat of...
8
by: John A Grandy | last post by:
tools > options > debugging > edit and continue by default, the option "allow me to edit vb files while debugging" is checked for c#, but unchecked for vb.net .... ? does anyone know why...
1
by: Redstone | last post by:
I have a frontend with some fairly complicated forms (lots of tabs). It took me some time to figure out - but when I set the "Allow Additions" attribute to "No" the form takes 45 seconds to open....
9
by: mvsguy | last post by:
I'm a Notes admin tasked with fixing an Access problem. I hope someone will be gracious enough to help. The database is getting a 3420, object not defined, and I need to find all the places...
5
by: Craig | last post by:
Hi folks, I like the idea of being able to link an Access database to Microsoft Outlook, but I'm wondering: 1.) If I do this, what happens to the e-mail attachments (I'll bet they get dropped)?...
1
by: =?Utf-8?B?R2FuZXNoIE11dGh1dmVsdQ==?= | last post by:
Hello All, Our application write logs to a file in a folder. Before our application starts writing to that file, I want to check if the current user has write access to that file, for example,...
5
by: martin DH | last post by:
Morning, Here's my problem: I have a field (ResFileLocation) on a form (frmResolution) that inserts a record-specific value (record ID, date stamp, etc) through vba when it has gained focus. ...
2
by: dstork | last post by:
Anyone know how to rename the "Exit Access" command at the bottom of the Office menu. I'd like to rename it to "Exit" as I had done in previous versions of Access. I know I can disable it with ...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.