![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Hi, I have a database that (among other things) tracks the duration of a given task. I would like to include a calculation field that adds the previous records duration tasks and displays them in the current record for example: Record No. Duration Cumulative Current Cumulative 1 10 min 0 10 2 15 10 25 3 3 25 28 4 22 28 50 5 16 50 66 If I am displaying a layout with the record 3 data, I want it to return a value 25 (the sum of records 1 and 2). I may want an additional field that adds the previous records + the current record for a value of 28 min on record three. I am needing some guidance on how to script the Cumulative and Current Cumulative fields. Any assistance is greatly appreciated. Many thanks, Antonio |
#3
| |||
| |||
|
|
Hi, I have a database that (among other things) tracks the duration of a given task. I would like to include a calculation field that adds the previous records duration tasks and displays them in the current record for example: Record No. Duration Cumulative Current Cumulative 1 10 min 0 10 2 15 10 25 3 3 25 28 4 22 28 50 5 16 50 66 If I am displaying a layout with the record 3 data, I want it to return a value 25 (the sum of records 1 and 2). I may want an additional field that adds the previous records + the current record for a value of 28 min on record three. I am needing some guidance on how to script the Cumulative and Current Cumulative fields. Any assistance is greatly appreciated. Many thanks, Antonio |
#4
| |||
| |||
|
|
If you want to show the running total for the found set, consider creating a summary field and using the "running total" option. |
![]() |
| Thread Tools | |
| Display Modes | |
| |