MS Access: Sum Function
The Microsoft Access Sum function returns the sum of a set of numeric values in a select query.
Sum Function (Syntax)
The syntax for the Sum function is:
Sum ( expression )
expression is a numeric value.It can be a field or a formula that evaluates to a numeric expression.
The Sum function can be used in the following versions of Microsoft Access:
- Access 2013, Access 2010, Access 2007, Access 2003, Access XP, Access 2000
Sum Examples (in SQL/Queries)
You can use the Sum function in a query by clicking on the Totals button in the toolbar (This is the button with the summation symbol). The Sum function is used in conjunction with the Group By clause.
This query would return the sum of all UnitsInStock by ProductName.