ANDREWeire
Programmer
Hi.
I am using Crystal Reports 8.0 and have created a report that pulls data from a Microsoft Access Table. The data is pulled into the reports sorted by the date.
Job Description Factor Date
--------------------------------------------
J001 Test 1 12/06/05
J002 Test 2 13/06/05
J003 Test 5 14/06/05
J004 Test 2 15/06/05
J005 Test 1 16/06/05
J006 Test 3 17/06/05
J007 Test 1 18/06/05
J008 Test 4 19/06/05
I want to include a field that SUMS the <Factor> value for the current record plus the next 3 records. The result would be as follows. The same result would be achieved very easily in Excel!!!!!
Job Description Factor Date
--------------------------------------------
J001 Test 1 12/06/05 10
J002 Test 2 13/06/05 10
J003 Test 5 14/06/05 11
J004 Test 2 15/06/05 07
J005 Test 1 16/06/05 09
J006 Test 3 17/06/05
J007 Test 1 18/06/05
J008 Test 4 19/06/05
I have tried to use a running total (based on record number) but no joy with that one since I cannot come up with a suitable "Reset Formulae". Somehow don't think that one would work.
Beginning to think that I will have to do some proper coding and use loops, etc. Would appreciate any help with this.
Thanks
I am using Crystal Reports 8.0 and have created a report that pulls data from a Microsoft Access Table. The data is pulled into the reports sorted by the date.
Job Description Factor Date
--------------------------------------------
J001 Test 1 12/06/05
J002 Test 2 13/06/05
J003 Test 5 14/06/05
J004 Test 2 15/06/05
J005 Test 1 16/06/05
J006 Test 3 17/06/05
J007 Test 1 18/06/05
J008 Test 4 19/06/05
I want to include a field that SUMS the <Factor> value for the current record plus the next 3 records. The result would be as follows. The same result would be achieved very easily in Excel!!!!!
Job Description Factor Date
--------------------------------------------
J001 Test 1 12/06/05 10
J002 Test 2 13/06/05 10
J003 Test 5 14/06/05 11
J004 Test 2 15/06/05 07
J005 Test 1 16/06/05 09
J006 Test 3 17/06/05
J007 Test 1 18/06/05
J008 Test 4 19/06/05
I have tried to use a running total (based on record number) but no joy with that one since I cannot come up with a suitable "Reset Formulae". Somehow don't think that one would work.
Beginning to think that I will have to do some proper coding and use loops, etc. Would appreciate any help with this.
Thanks