Like many people, I am struggling with getting a cumulative total to work in a query. I think I need to use DSUM but everything I have tried fails ( and I've been trying for hours ).
I have a list of dates ( 203 records in all ) sorted in ascending order, for example,
DATE COMPL
20/06/2006
22/06/2006
22/06/2006
04/07/2006
05/07/2006 etc
Each date corresponds to a job being completed. I want another column that represents the cumulative number of jobs completed, as follows,
DATE COMPL CumTot
20/06/2006 1
22/06/2006 2
22/06/2006 3
04/07/2006 4
05/07/2006 5
Sounds easy, and no doubt it is, but I can't fathom it out ??? Maybe I don't even need DSUM, just determine the position of the record in the recordset.
I have a list of dates ( 203 records in all ) sorted in ascending order, for example,
DATE COMPL
20/06/2006
22/06/2006
22/06/2006
04/07/2006
05/07/2006 etc
Each date corresponds to a job being completed. I want another column that represents the cumulative number of jobs completed, as follows,
DATE COMPL CumTot
20/06/2006 1
22/06/2006 2
22/06/2006 3
04/07/2006 4
05/07/2006 5
Sounds easy, and no doubt it is, but I can't fathom it out ??? Maybe I don't even need DSUM, just determine the position of the record in the recordset.