chris.leng
Registered User.
- Local time
- Today, 02:33
- Joined
- Jul 21, 2008
- Messages
- 15
Hi,
I'm trying to add subtotals onto my query in an additional column,
The Criteria are other values from the current record and I'd like to add values from the whole query,
example:
very basic table with Dates and Quantites, I would like a total of all the quantites on and before the date of the current record summing and putting into the next column along:
date ------ qty----- total
5/2/2009 ---- 6 ------ 6
9/9/2009 ---- 5 ------ 11
3/9/2010 ---- 3 ------ 14
6/4/2010 ---- 3 ------ 17
7/3/2010 ---- 6 ------ 23
9/7/2010 ---- 3 ------ 26
1/6/2010 ---- 7 ------ 34
4/6/2011 ---- 2 ------ 36
5/4/2011 ---- 3 ------ 39
in the real world it wont be sorted so neatly, and there will be additional columns and criteria (eg, Type and Color)
I'm trying to add subtotals onto my query in an additional column,
The Criteria are other values from the current record and I'd like to add values from the whole query,
example:
very basic table with Dates and Quantites, I would like a total of all the quantites on and before the date of the current record summing and putting into the next column along:
date ------ qty----- total
5/2/2009 ---- 6 ------ 6
9/9/2009 ---- 5 ------ 11
3/9/2010 ---- 3 ------ 14
6/4/2010 ---- 3 ------ 17
7/3/2010 ---- 6 ------ 23
9/7/2010 ---- 3 ------ 26
1/6/2010 ---- 7 ------ 34
4/6/2011 ---- 2 ------ 36
5/4/2011 ---- 3 ------ 39
in the real world it wont be sorted so neatly, and there will be additional columns and criteria (eg, Type and Color)