Microsoft KB Archive/304399

= OL: Parent Property Does Not Return Item's Parent Folder =

Article ID: 304399

Article Last Modified on 2/12/2007

-

APPLIES TO


 * Microsoft Outlook 97 Standard Edition
 * Microsoft Outlook 98 Standard Edition
 * Microsoft Outlook 2000 Standard Edition
 * Microsoft Outlook 2002 Standard Edition

-



This article was previously published under Q304399



SYMPTOMS
When you are using the Outlook object model from Microsoft Visual Basic Scripting Edition (VBScript) in a custom Outlook form, the Parent property does not return the folder that the item was created in.



CAUSE
Outlook does not set this property until after an item is saved.



RESOLUTION
You must save the item for the Parent property to return an accurate folder reference.



WORKAROUND
Depending on the design of your solution, you may be able to reference the folder by using the CurrentFolder property of the ActiveExplorer object. However, this will always return the folder that is selected in the user interface, which may not always be the folder that the item is located in.



STATUS
This is a limitation of how the Parent property works. There are no plans to change this behavior.

