OL98: Published Form with Find Method Displays Macro Warning

ID: Q221956


SYMPTOMS

When you use the Find method in Visual Basic Scripting Edition (VBScript) to retrieve one of the standard Outlook properties from an item, one of the following symptoms occurs:

  • A macro warning message unexpectedly appears when you open the item.


  • The Message Class field of the item changes from a custom message class to the default message class for that type of item.


  • The size of the item unexpectedly increases.



CAUSE

Using the Find method to retrieve a standard Outlook field results in a one-off item.

For additional information about one-off items, please see the following article in the Microsoft Knowledge Base:

Q181266 OL98: Working with Form Definitions and One-Off Forms


WORKAROUND

Instead of using the Find method to refer to a standard field, use the more common syntax:


Item.<StandardFieldName> 


STATUS

Microsoft has confirmed this to be a problem in the Microsoft products listed at the beginning of this article.


MORE INFORMATION

This problem does not occur when you use the Find method to retrieve user-defined fields.


REFERENCES

For more information about creating solutions with Microsoft Outlook, please see the following articles in the Microsoft Knowledge Base:

Q180826 OL98: Resources for Custom Forms and Programming

Q182349 OL98: Questions About Custom Forms and Outlook Solutions

Additional query words: OutSol OutSol98

Keywords : kbdta OffVBS
Version :
Platform :
Issue type : kbbug


Last Reviewed: November 13, 1999
© 2000 Microsoft Corporation. All rights reserved. Terms of Use.