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/one_icon.jpg

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

graphics/two_icon.jpg

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

graphics/three_icon.jpg

Select the table or query you want to use.

graphics/four_icon.jpg

Click Add.

graphics/five_icon.jpg

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

graphics/six_icon.jpg

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

graphics/seven_icon.jpg

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

graphics/eight_icon.jpg

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

graphics/nine_icon.jpg

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

graphics/13inf12.jpg

graphics/13inf13.jpg

See Also

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



Show Me. Microsoft Office 2003
Show Me Microsoft Office 2003
ISBN: 0789730073
EAN: 2147483647
Year: 2002
Pages: 418

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