PRB: Access Denied Error When You Set a Property in the Global Address List (GAL) (266724)
The information in this article applies to:
- Collaboration Data Objects (CDO) 1.2
- Collaboration Data Objects (CDO) 1.21
This article was previously published under Q266724 SYMPTOMS
When you attempt to set a property in the Microsoft Exchange Global Address List (GAL) to an empty string, you may receive the following error message:
You do not have sufficient permission to perform this operation on this object. [Microsoft Exchange Address Book - [E_ACCESSDENIED(80070005)]]
CAUSE
This error message is misleading because it is only displayed when you attempt to set the property to an empty string.
RESOLUTION
To work around this problem, check the new value before you set the property:
if NewNum = "" Then
objAddressEntry.Fields(myMAPIProperty) = vbEmpty 'Empty in VBScript
Else
objAddressEntry.Fields(myMAPIProperty) = NewNum
End If
Modification Type: | Minor | Last Reviewed: | 3/4/2004 |
---|
Keywords: | kbMsg kbprb KB266724 |
---|
|