Creating a Select Query

This is the simplest of the types of query you can apply to your database.

1. Open your database in the usal way.

2. From the Database Window select the Queries tab and presss the New button.

access4_1.gif (9528 bytes)

3. From the Design View dialogue box select Design View

access4_2.gif (3389 bytes)

4. You must now add the database to which the query will be applied. You could use serveral databases. For this example only one database will be used. Having first Added your database. Press the Close button.

access4_3.gif (2706 bytes)

5. There are two methods you can use to add fields to your query:
a. Click in the field cell and a drop-down list box arrow appears. Select the field from the list.
b. Drag a field from the field box and drop it into the field cell.

In this example the drop-down field list method is used.

access4_6.gif (11207 bytes)

6. Having added all the fields to your query, add the criteria in the column below each field on which you want the selection to be made. If you want to use an "AND" function you simple use the word And in the Criteria cell. If you wanted to search for Fred and Ken you would type exactly that into the cell. The "OR" function is applied by entering the criteria in the "or:" cell at the bottom of the column.

access4_8.gif (9955 bytes)

7. Go to Query/Run on the Menu bar, or select the query icon from the Tool Bar.

access4_8.gif (9955 bytes)

7. The results of the query will appear. In this example, since one of the criteria was "OR Age > 25" all of the people in the database over 25 are listed as well as "Ken".

access4_9.gif (8230 bytes)


| Previous Page | Menu | Next Page | Home Page |