Creating a Parameter Query

1. Open your database in the usual way.

2. Go to the Queries tab and select New.

access7_1.gif (9915 bytes)

3. Select Design View and click OK.

access7_2.gif (3396 bytes)

4. Click Add to add your database to the query.

access7_3.gif (2696 bytes)

5. Click the Close button.

access7_4.gif (2661 bytes)

6. Either drag and drop fields from the field list box, or click in the field 'cell' and select a field from the drop-down menu.

access7_5.gif (11469 bytes)

7. Repeat for each field ...

access7_6.gif (11703 bytes)

8. In the Criteria: cell for the field you want to search on type in the Parameter label enclosed in square brackets. In this example "Enter SURNAME" is used. Any word, or phrase could be used.

access7_7.gif (11643 bytes)

9. Go to Query/Parameters...

access7_8.gif (13424 bytes)

10. In the Parameter list box enter the label used to identify the parameter. The label has to be exactly the same as the label you entered in the criteria cell in the previous step. Set the Data Type using the drop-down menu and click OK.

access7_9.gif (2161 bytes)

11. Close the Query Design window by clicking in the close box (the cross at the top-right of the window). Access will ask you to enter a name for the query you just created. Type in something meaningful and click OK.

access7_10.gif (1069 bytes)

12. Your new query will be listed in the query window.

13. Double-click your new query, or highlight it and select Open.

access7_11.gif (10244 bytes)

14. A 'pop-up' dialogue window will appear prompting you for a search parameter. Enter the search condition and press OK.

access7_12.gif (907 bytes)

15. Access will 'query' the database and present the results as below ...

access7_13.gif (10358 bytes)

 


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