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 calculates the sum of a set of values.

Note: NULL values are ignored.

Syntax

Sum(expression)

Parameter Values

Parameter Description
expression Required. A field or a formula

Technical Details

Works in: From Access 2000

Copyright 1999-2023 by Refsnes Data. All Rights Reserved.