Microsoft KB Archive/282408

= OL97: Recipient.Address Does Not Return Address =

Article ID: 282408

Article Last Modified on 2/12/2007

-

APPLIES TO


 * Microsoft Outlook 97 Standard Edition

-



This article was previously published under Q282408





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
Upgrade to Outlook 98 or later, which provides additional properties to determine the address of a recipient. For additional information, click the article number below to view the article in the Microsoft Knowledge Base:

282409 OL98: Recipient.Address Does Not Return Address

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.



Steps to Reproduce the Problem
 Open a new mail message. Click the To button to display the Address Book window, and then add a recipient to the To field. Leave the mail message open.  Run the following code from Microsoft Visual Basic, or Microsoft Visual Basic for Applications in another Microsoft Office program: Sub TestRecipient Set ol = CreateObject(&quot;Outlook.Application&quot;) MsgBox ol.ActiveInspector.CurrentItem.Recipients(1).Address End Sub </ol>

<div class="references_section">