Summing fields between two dates

R

RealGomer

I think I know how to do this but any extra help would be appreciated.

I have a table with four fields - net sales, payin date, payin number, and
payin amount. What I want to do is create a query that will summarize all of
the amounts in "net sales" within a specified date range. I thought an
expression reading SUM([net sales]) BETWEEN [start date] AND [end date] would
work, but it doesn't.
Suggestions?
 
V

vanderghast

SELECT SUM( [net sales] )
FROM tableNameHere
WHERE fieldWithDateHere BETWEEN [start date] AND [end date]


as SQL in SQL view, should do.



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.

Ask a Question

Top