Eddie Monster
8th March 2002, 18:38
I have a report written by one of the consultants that aided us in our implementation. The consultant used the Total Aggreagate Function to get the total for a grouping. For Example (report layouts)...
Detail Record 1: variable amnt.copr = 100.00
Detail Record 1: variable amnt.copr = 230.00
Detail Record 1: variable amnt.copr = 900.00
After.grouping: variable amnt.corp = 1123.00
The same report field variable is used in the detail section and the after.grouping section of the report, but because the after.grouping report field has the aggregate function set to 'Total', the total is printing. I understand the functionality.
However, I am now trying to use a db.insert command to populate a new table with the grouping totals for this report (to be used with another session). When I run the report, the report prints as it always has, and I get data in my table where I want to, but instead of getting the value 1123 for amnt.copr I get 900. Is there any way to get the total aggregate value of amnt.copr?
Detail Record 1: variable amnt.copr = 100.00
Detail Record 1: variable amnt.copr = 230.00
Detail Record 1: variable amnt.copr = 900.00
After.grouping: variable amnt.corp = 1123.00
The same report field variable is used in the detail section and the after.grouping section of the report, but because the after.grouping report field has the aggregate function set to 'Total', the total is printing. I understand the functionality.
However, I am now trying to use a db.insert command to populate a new table with the grouping totals for this report (to be used with another session). When I run the report, the report prints as it always has, and I get data in my table where I want to, but instead of getting the value 1123 for amnt.copr I get 900. Is there any way to get the total aggregate value of amnt.copr?