OL2000: Published Form with Find Method Displays Macro Warning (218343)



The information in this article applies to:

  • Microsoft Outlook 2000

This article was previously published under Q218343

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:

207896 OL2000: 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 that this is a problem in the Microsoft products that are 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 additional information about available resources and answers to commonly asked questions about Microsoft Outlook solutions, please see the following article in the Microsoft Knowledge Base:

146636 OL2000: Questions About Custom Forms and Outlook Solutions


Modification Type:MajorLast Reviewed:9/29/2003
Keywords:kbbug kbnofix kbProgramming KB218343