Home Privacy Policy Feedback Link to us Site Map

Access: Count Function


In Access, the Count function returns the number of records in a select query.

The syntax for the Count function is:

Count( expression )

expression can be a field or any string expression.


SQL/Queries

You can use the Count function in a query by clicking on the Totals button in the toolbar (This is the button with the summation symbol). The Count function is used in conjunction with the Group By clause.

This query would return the number of records for each ProductName. You can actually substitute any field with the Count function and it will return the same count result. In this case, we've used the SupplierID field to determine the number of records for each ProductName.