Domain Aggregates





techstore
LQ Net Home




   Access Links







Domain Aggregate Functions

printpage    Printer Friendly Page

Domain Aggregate Functions are like SQL queries.
They are easy to use in Access.

The most useful Domain Aggregate Functions are listed below:
DAVG Average of the values in a set
DCOUNT Number of records in a set of records
DSUM Total of a set of records
DFIRST First record in a set
DLAST Last record in a set
DMIN Smallest value in a set
DMAX Largest value in a set


Domain Aggregate syntax is:

This is a standard SQL statement.
It will return the SUM of all amounts in the Balance_Due field from the table Invoices:
The equivalent DSUM statement is:

Here is an example where the total Balances are placed in a textbox on a form.

This is an example of using the WHERE clause of a SQL statement:
The equivalent DSUM statement is:



















Copyright © 2006-2009, LQ Systems,Inc. All rights reserved.