Title: Access Query Design
1Access Query Design
The Query design screen provides a mechanism for
selecting specific data from datafile(s) by
2Access Query Screen
Query Design Screen
3Access Query Screen (cont.)
Selecting Fields Highlight the field in the
active table. Drag the field from the active
table and drop it in the field view skeleton.
Selecting Records CRITERIA Enter criteria into
bottom section of the query design
screen. Character field
4CRITERIA
5CRITERIA (CONT.)
Numeric field
6CRITERIA (CONT.)
Date Fields eg. before 27th July 1987 is
entered as
7CRITERIA (CONT.)
Logical Fields
8MULTIPLE CRITERIA
Condition1 AND Condition2 Enter conditions on
the same line.
9MULTIPLE CRITERIA (CONT.)
10MULTIPLE CRITERIA (CONT.)
11MULTIPLE CRITERIA (CONT.)
Output
12MULTIPLE CRITERIA (CONT.)
Condition1 OR Condition2 Enter conditions on
different lines in file skeleton
13MULTIPLE CRITERIA (CONT.)
Output
14MULTIPLE CRITERIA (CONT.)
15MULTIPLE CRITERIA (CONT.)
Output
16SORTING RECORDS
Access allows you to sort the output in ascending
or descending order on character, numeric date
fields.
17SORTING RECORDS (CONT.)
Example 1 Sort all employees in ascending order
according to Name. Show Name, DOB Department
18SORTING RECORDS (CONT.)
Output
19SORTING RECORDS (CONT.)
Example 2 Sort all employees in ascending order
according to Name within each Department. Show
Name, DOB Department
20SORTING RECORDS (CONT.)
Output
21SHOWING RECORDS
Tick the SHOW box if you want the field to be
displayed. Note Not all SHOW boxes should be
ticked.
22SORTING RECORDS (CONT.)
Output