If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. |
|
|
Thread Tools | Display Modes |
#1
|
|||
|
|||
Summing fields between two dates
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? -- Für Elise - Support the Breast Cancer & Heart Foundations |
#2
|
|||
|
|||
Summing fields between two dates
SELECT SUM( [net sales] )
FROM tableNameHere WHERE fieldWithDateHere BETWEEN [start date] AND [end date] as SQL in SQL view, should do. Vanderghast, Access MVP "RealGomer" wrote in message ... 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? -- Für Elise - Support the Breast Cancer & Heart Foundations |
Thread Tools | |
Display Modes | |
|
|