OL2000: Can't Set Initial Value of Categories Field

ID: Q241188


The information in this article applies to:
  • Microsoft Outlook 2000


SYMPTOMS

An initial value for the Categories field does not work on a custom Outlook form.


RESOLUTION

Use an Item_Open event in Visual Basic Scripting Edition (VBScript) to set the initial value of the Categories field. The following VBScript code will set the Categories field to Personal only when a new item is created:


Sub Item_Open()
   If Item.CreationTime = #1/1/4501# Then
      ' A new item is being launched, so set the Categories field
      Item.Categories = "Personal"
   End If
End Sub 


STATUS

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


MORE INFORMATION

This problem did not exist in Outlook 97 or 98. In Outlook 2000, the problem also does not occur if you use a user-defined field of type keywords, or if you use a different standard keywords field, such as the Company field on a task form.


REFERENCES

For additional information about keywords fields and using them from VBScript, please see the following article in the Microsoft Knowledge Base:

Q201099 OL2000: Working with Keywords Fields from VBScript

For additional information about available resources and answers to commonly asked questions about Microsoft Outlook 2000 solutions, please see the following article in the Microsoft Knowledge Base:
Q146636 OL2000: Questions About Custom Forms and Outlook Solutions

Additional query words: OutSol OutSol2000 OL2K

Keywords :
Version : WINDOWS:2000
Platform : WINDOWS
Issue type : kbbug


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