
The criteria argument is optional.Ī good example of this strategy is calculating an account balance from debits and credits. The expression and domain arguments are required. Any field that’s included in the criteria must also be in the domain.

It’s a string expression that can be a table or query name. A domain that identifies the set of records where the data is.You can use the name of a field in a table, a control on a form, a constant, or a function.

It can be a string that identifies a field in a table or query, or it can be a calculation of the data in that field. An expression that identifies the numeric field whose values you want to sum.

One method is to use the DSUM function, which is a function that will calculate a sum of records in a table or query. But if you want to, say, use the running totals elsewhere, calculate an account balance, or make a table with the running totals, you’ll need to have the running total data available in a query. For a report, you can simply set the Running Totals property of the appropriate text box to Overall.
