Microsoft KB Archive/172675

= OL97: "Doesn't Contain" in Find May Give Unexpected Results =

Article ID: 172675

Article Last Modified on 1/20/2007

-

APPLIES TO


 * Microsoft Outlook 97 Standard Edition

-



This article was previously published under Q172675





SYMPTOMS
In Microsoft Outlook, when you use the Advanced Find to look for Contacts and specify different values for the name field using the "Doesn't Contain" condition, the search results may include those values you intended to exclude.



RESOLUTION
To get the results you want, use one of the following methods.

Use AND Criteria
Set the search criteria using the following example:


 * 1) On the Tools menu, click Find Items and click the Advanced tab.
 * 2) Click Field, point to All Mail Fields, and click From.
 * 3) Under Condition, click Doesn't Contain.
 * 4) In the Value box type John (space) Jane, and click Add To List.
 * 5) Click Find Now.

With this search criteria, Outlook assumes an AND function between the names, finding contacts that don't contain John AND that don't contain Jane.

Use a Category Field
Assign a category to each Contact, then use the category name in the Doesn't Contain field.

To assign a category, follow these steps:


 * 1) Click the Contacts icon in the Outlook Bar.
 * 2) On the Contacts menu, click New Contact.
 * 3) Type the pertinent information for the person, and click Categories at the bottom of the Contact form.
 * 4) Click to select the Category name you want. To create a new Category, in "Item(s) belong to these categories," type your new Category name, click Add To list, click OK, and click Save And Close.
 * 5) On the Tools menu, click Find Items, and then click the Advanced tab.
 * 6) Click Field, point to Frequently-used fields, and click Categories.
 * 7) Under Condition, click Doesn't Contain.
 * 8) In the Value box, type the Category name, and click Add To List.
 * 9) Click Find Now.



MORE INFORMATION
Additional query words: identical exclude sort boolean

Keywords: kbprb KB172675

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.