How to Turn On Query BuilderTo turn on the Query Builder, add the QueryBuilder key to the registry.
WARNING: If you use Registry Editor incorrectly, you may cause serious problems that may require you to reinstall your operating system. Microsoft cannot guarantee that you can solve problems that result from using Registry Editor incorrectly. Use Registry Editor at your own risk.
To add the QueryBuilder key to the registry, follow these steps:
- Quit Outlook.
- Click Start, and then click Run.
- In the Open box, type regedit,and then click
- Locate the following key in the registry based on your installed version: Outlook 98HKEY_CURRENT_USER\Software\Microsoft\Office\8.0\OutlookOutlook 2002HKEY_CURRENT_USER\Software\Microsoft\Office\10.0\Outlook
- On the Edit menu, click New, click Key, and then type QueryBuilder for the key name.
- Quit Registry Editor.
How to Use Query BuilderThe main purpose of the Query Builder tool is to provide more complex filters and search criteria than are normally possible with the options in the Filter and Advanced Find dialog boxes. For example, if you use the Advanced tab to do a query that has two entries that use the SAME field, the result is an OR condition:
To: contains string2
This query returns any item that contains string1 or string2 in the To: line of an e-mail message. Although this method is not very intuitive, you can make this an AND query by entering the condition with the strings separated by a space, as shown:
The following query is another example of a query that you can do only with Query Builder:
Subject does not contain value
How to Create Nested ConditionsWith Query Builder, you can create nested conditions by using the Move Up and Move Down buttons. After you have added three or more fields to the criteria list, you can use the buttons to move the selected line up or down to create a nested condition. Nested conditions allow for much greater complexity and a finer level of control over the criteria.
ID d'article : 307922 - Dernière mise à jour : 14 nov. 2003 - Révision : 1