Use the query designer. In a total query, add an appropriate WHERE condition
(get the word WHERE in the GROUP line of the grid). A WHERE condition
eliminates records BEFORE the summation occur. The produced SQL code may
look like:
SELECT SUM(amount)
FROM myTable
WHERE itemNumber BETWEEN 0 AND [n]
as example.
Hoping it may help
Vanderghast, Access MVP
Ask a Question
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.