MS Access Sum() Function
Example
Return the sum of the "Quantity" field in the "OrderDetails" table:
SELECT Sum(Quantity) AS TotalItemsOrdered FROM OrderDetails;
Try it Yourself »
Definition and Usage
The Sum() function returns the summed value of an expression.
Syntax
Sum(expression)
Parameter Values
Parameter | Description |
---|---|
expression | Required. A numeric value (can be a field or a formula) |
Technical Details
Works in: | Access 2016, Access 2013, Access 2010, Access 2007, Access 2003, Access XP, Access 2000 |
---|