Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Rolling Sum In A Query

Status
Not open for further replies.

Craig0201

Technical User
Oct 11, 2000
1,261
GB
Hiya everyone.....

Happy holidays.....

I need to create a query with a rolling sum calculated in it based upon a particular field. Very easy in a spreadsheet but how do I convert it to Access query stuff?

All help appreciated as always!!

:)

Craig
 
When you say rolling sum. What exactly are you referring too.

DougP, MCP
dposton@universal1.com

Ask me how Bar-codes can help you be more productive.
 
Is it running sum? If yes, add new field RunTot and write syntax something like: SELECT Orders.EmployeeID AS EmpAlias, Sum(Orders.Freight) AS SumOfFreight, Format(DSum(&quot;Freight&quot;,&quot;Orders&quot;,&quot;[EmployeeID]<=&quot; &amp; [EmpAlias] &amp; &quot;&quot;),&quot;$0,000.00&quot;) AS RunTot
FROM Orders
GROUP BY Orders.EmployeeID;
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top