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.




Show Me Microsoft Office Access 2003
Show Me Microsoft Office Access 2003
ISBN: 0789730049
EAN: 2147483647
Year: 2002
Pages: 318

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net