Reset my running sum with new/different date range(s)

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

How can I restart my running sum when I enter a new date range? It appears
that I'm getting all of the previous months prior to the date range that I
have selected in my query.

RunTotItemsComp: (SELECT Sum([Items Completed]) FROM [qryItems Completed by
Day Results subqry] A WHERE A.[Completed Date] <= [qryItems Completed by Day
Results subqry].[Completed Date])

Current Results

Associate Completed Date Date Items Completed RunTotItemsComp
Jane Doe 4/1/2005 6
8100
Jane Doe 4/2/2005 3
8103
Jane Doe 4/3/2005 17
8241

Results Required

Associate Completed Date Date Items Completed RunTotItemsComp
Jane Doe 4/1/2005 6
6
Jane Doe 4/2/2005 3
9
Jane Doe 4/3/2005 17
26
 
Disregard... my criteria fields in my subquery had to be updated to match the
active query.
 

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

Back
Top