Ask questions of your data with criteria, sorting and calculated fields.
Choose criteria below. Watch the records filter and see the query that Access would write for you (in SQL, the language behind every query).
| Member | Province | Course | Fee (R) | Status |
|---|---|---|---|---|
| Thandi Mokoena | Gauteng | Excel | 1450 | Paid |
| Pieter van Wyk | Free State | Word | 980 | Paid |
| Ayesha Patel | KwaZulu-Natal | Excel | 1450 | Owing |
| Sipho Dlamini | Gauteng | Access | 1650 | Paid |
| Lerato Molefe | Limpopo | Word | 980 | Owing |
| Johan Smit | Western Cape | Access | 1650 | Paid |
| Zanele Khumalo | Gauteng | Word | 980 | Owing |
| Fatima Moosa | Western Cape | Excel | 1450 | Paid |
Create > Query Design, then add the table or tables you need.
Double-click each field you want to see. It drops into the design grid.
In the Criteria row type the condition, for example "Gauteng" under Province.
Choose Ascending or Descending in the Sort row.
Click Run (!) to see the results. Save the query as qryGautengMembers.
Tap a term on the left, then its meaning on the right. 6 pairs to go
AND vs OR
Criteria on the same row must all be true (AND). Criteria on different rows mean either one can be true (OR).
Type an expression in an empty column, for example VAT: [Fee]*0.15, to calculate a new value for every record.
Click Totals (Σ) to group records and Sum, Count or Average them, for example total fees per province.
Type [Enter province] in the criteria row. Access asks for the value each time the query runs.
Which criteria finds members whose surname starts with M?