[ Team LiB ] Previous Section Next Section

Creating a Query in Design View

Although a wizard can be a big help when you are first learning to create a query, you do not need to use a wizard. If you prefer, you can create a query without the help of a wizard. Instead of answering questions in a series of dialog boxes, you can start working in Design view right away. As you create a query, you can include more than one table or even another query in Design view. You can use comparison operators, such as >, <, or =, to compare field values to constants and other field values in the Criteria box. You can also use logical operators to create criteria combining several expressions, such as >1 AND <5.

Create a Query in Design View

graphics/1_icon.jpg

In the Database window, click Queries on the Objects bar.

graphics/2_icon.jpg

Click New, click Design View, and then click OK.

graphics/3_icon.jpg

Select the table or query you want to use.

graphics/4_icon.jpg

Click Add.

graphics/5_icon.jpg

Repeat steps 3 and 4 for additional tables or queries, and then click Close.

graphics/6_icon.jpg

Double-click each field you want to include in the query from the field list.

graphics/7_icon.jpg

In the design grid, enter any desired search criteria in the Criteria box.

graphics/8_icon.jpg

Click the Sort box, click the list arrow, and then specify a sort order.

graphics/9_icon.jpg

Click the Save button, type a name for the query, and then click OK.

graphics/06inf02.jpg

See Also

See "Performing Calculations in Queries" on page 128 for information on using the expression builder to add search criteria.


    [ Team LiB ] Previous Section Next Section