The Count function helps you easily create a query that, based on any criteria, sums up the number of Access records you have. Here's how to use it.
The Count function helps you easily create a query that, based on any criteria, sums up the number of Access records you have. For example, to create a query to find out how many female technicians your company employs, follow these steps:
- Open the Employees database.
- Click Queries Under Objects in the Database window.
- Click the New button and then click OK.
- Select the Employees table and the click Add.
- Click Close.
- Click in the first empty field cell of the Query Design grid.
- Type Count(*).
- Press [Tab].
- Double-click Expr1 and type Total Number Of Female Technicians.
- Double-click the Gender field in the Field list.
- Click to deselect the Gender Field Show check box.
- Type Female in the Gender Criteria cell.
- Save and close the query.
Miss an Access tip?
Check out the Microsoft Access archive, and catch up on other Access tips.
Help users increase productivity by automatically signing up for TechRepublic's free Microsoft Office Suite newsletter, featuring Word, Excel, and Access tips, delivered each Wednesday.