OL98: ContactItem Object Does Not Have a Location Property (258782)






This article was previously published under Q258782

SYMPTOMS

When you try to reference the Location property of a ContactItem object by using the Microsoft Outlook object model, you cannot locate it.

CAUSE

The Outlook object model does not support the Location property.

RESOLUTION

If you are using the Office Location field on the contact form, the corresponding property in the Outlook object model is OfficeLocation.

If you use the Field Chooser to add the Location field to a custom contact form and you need to programmatically access the data in this field, implement a user-defined field instead of the standard Location field.

STATUS

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

MORE INFORMATION

In the Field Chooser, the Location field is available in the set of All Contact fields. The field can be added to a custom Outlook form. It functions correctly until you try to access it programmatically.

The Location field was incorrectly included in the Field Chooser as part of the original design of Outlook. To help ensure backwards compatibility, the Location field is still available in the Field Chooser.

REFERENCES

For additional information about creating solutions with Microsoft Outlook, click the article numbers below to view the articles in the Microsoft Knowledge Base:

180826 OL98: Resources for Custom Forms and Programming

182349 OL98: Questions About Custom Forms and Outlook Solutions


Modification Type: Major Last Reviewed: 7/30/2001
Keywords: kbbug KB258782