The information in this article applies to:
SYMPTOMSIf you programmatically sort a collection of items based on a user-defined field, the items may not be sorted. CAUSEYou used square brackets to delimit the name of the user-defined field. WORKAROUNDCorrect
where Contact Type is the name of a user-defined field.
Incorrect Do not use square brackets around the user-defined field. Do not use the following syntax to sort a collection of items based on a user-defined field:
STATUS
The Sort method is not designed to function with user-defined fields. Although the workaround described in this article works in all known cases, Microsoft does not support its use. Also, this functionality may not exist in future versions of Outlook, raising the risk that your solution may not function correctly in the
future. MORE INFORMATIONIMPORTANT: In Microsoft Outlook 2000, the Outlook Visual Basic Reference (Vbaoutl9.chm) explicitly states that the Sort method does not support user-defined fields. REFERENCES
For more information about creating solutions with Microsoft Outlook 98,
please click the article numbers below to view the 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 |
Last Reviewed: December 10, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |