OL2000: Recipient.Address Does Not Return Address (282410)



The information in this article applies to:

  • Microsoft Outlook 2000

This article was previously published under Q282410

SYMPTOMS

You use the Address property of a Recipient object in the Outlook object model, but no address is returned.

CAUSE

When you added a recipient to a mail message form, you used the Address Book window to add the recipient, instead of manually typing the address.

WORKAROUND

Use one of the following methods to work around the problem:

Method 1

Use the Address property of the AddressEntry object instead of the Address property of the Recipient object.

NOTE: the AddressEntry object was added in the Outlook 98 object model, so you cannot use this workaround if the solution needs to work with Outlook 97.

Method 2

Use the Colloboration Data Objects (CDO) 1.2x object model to obtain address information about the recipient. However, the CDO object model and Outlook object model do not directly interoperate with each other. Therefore, you must use the Outlook object model to save the mail message, then locate it with the CDO object model to access the properties of the recipients. For additional information about using CDO to work with recipient properties, click the article number below to view the article in the Microsoft Knowledge Base:

196507 HOWTO: Retrieve Alternate E-mail Addresses Using CDO

Method 3

Make sure that users manually type the recipients' names and do not use the Address Book window.

STATUS

Microsoft has confirmed that this is a problem in the Microsoft products that are listed at the beginning of this article.

MORE INFORMATION

Steps to Reproduce the Problem

  1. Open a new mail message.
  2. Click the To button to display the Address Book window, and then add a recipient to the To field.
  3. Leave the mail message open.
  4. Run the following Outlook Visual Basic for Applications code:
    Sub TestRecipient()
       MsgBox ActiveInspector.CurrentItem.Recipients(1).Address
    End Sub   
    					

REFERENCES

For additional information about available resources and answersto commonly asked questions about Microsoft Outlook solutions, click the article number below to view the article in the Microsoft Knowledge Base:

146636 OL2000: Questions About Custom Forms and Outlook Solutions


Modification Type:MinorLast Reviewed:3/1/2004
Keywords:kbbug kbpending KB282410