PRB: Changing Properties of AddressEntry object of a Recipient (171671)
The information in this article applies to:
- Collaboration Data Objects (CDO) 1.1
- Collaboration Data Objects (CDO) 1.2
- Collaboration Data Objects (CDO) 1.21
This article was previously published under Q171671 SYMPTOMS
When attempting to change properties or fields of the AddressEntry object
of a Recipient of a message, the property/field changes are not saved.
For example, using the following code, the change to the PR_SEND_RICH_INFO
is not saved, as seen in the Details page that is displayed. (See the MORE
INFORMATION section below for how the variables are defined.)
RESOLUTION
Follow these steps to make changes to the AddressEntry object of a
recipient of a message. This code may be used to correct the complete code
example provided in the MORE INFORMATION section below.
- After resolving the recipient, create a new AddressEntry object based on
the AddressEntry property of the Recipient:
Dim objAddress As Mapi.AddressEntry
Set objAddress = objRecip.AddressEntry
- Change the properties or fields on the new AddressEntry object:
objAddress.Fields(ActMsgPR_SEND_RICH_INFO) = False
- Call the Update method of the new AddressEntry object:
objAddress.Update
- Set the AddressEntry property of the Recipient object to the
AddressEntry object created in step 1 above:
objRecip.AddressEntry = objAddress
Modification Type: | Major | Last Reviewed: | 5/9/2005 |
---|
Keywords: | kbcode kbMsg kbprb KB171671 kbAudDeveloper |
---|
|