Calculating Fields in SQL Functions
QueryDef Object
SQL
SQL Aggregate Functions (SQL)