Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

outlook permission error

Status
Not open for further replies.

TRYP

Programmer
Jun 20, 2000
136
US
I am trying to create an MS Outlook appointment from inside MS Access using the following code:

Dim oOL As Outlook.Application
Dim oItem As Outlook.AppointmentItem

Set oOL = New Outlook.Application
Set oItem = oOL.CreateItem(olContactItem)

The createItem throws this error:

-2079129595
You don't have appropriate permission to perform this operation.

This is not happening with all user accounts; only some. The Access dB is running on terminal services.

Help !

TRYP
 
Whenever I have received this error it has been because I do not have appropriate permissions to work with the folder for that person. Is this macro being run by the person whose outlook mailbox you are adding to?
 
The person running the code is the persob whose outlook profile is being used.

there is the terminal services client login
and the Access workgroup user name.
Do these matter?

Tryp
 
I'm afraid I have only seen this error when I have had one user access another user's mailbox. I would not think that the Access workgroup user name would make a difference. I believe Outlook would be dependent on the NT logon.

Are the people who are having difficulty able to successfully open their outlook on the terminal server, outside of the Access db? Before the create perhaps you could put oOL.Visible = true and see if Outlook opened correctly? Perhaps there is a problem with the Outlook profiles for those users.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top