The word SUM is a reserved word in Access SQL. Try replacint that as
the alias of the column or surround Sum with [].
SELECT Sum([Check Amount]) as [Sum] ...
'====================================================
John Spencer
Access MVP 2002-2005, 2007
Center for Health Program Development and Management
University of Maryland Baltimore County
'====================================================
Patty said:
Select Sum( [Check Amount] ) As SUM From [FRS Outstanding checks bank 7
01AUG06]
What's wrong with this syntax?
Ofer Cohen said:
Try something like
Select Sum([FieldName]) As NewFieldName From TableName
You can copy and paste this SQL to your query, just change the query name
and field name
--
Good Luck
BS"D
Patty Stoddard said:
I want to add amounts from all records in a query.
For example, each record has a field called "Amount". I want the sum of all
these amounts. Can I do this in a query?