TDBCalc (s) not resetting after group footer
Greetings,
I'm trying to do percentages on accounts receivable by salesman.
At the group footer, the total and the aging prints out and I'm trying to do
percentages of each aging column to the total a/r for the salesman.
But, salesman #2's totals includes salesman's #1. The sums don't appear to
be resetting after the group prints.
Any clues to what I'm missing would be greatly appreciated.
Kevin
I'm trying to do percentages on accounts receivable by salesman.
At the group footer, the total and the aging prints out and I'm trying to do
percentages of each aging column to the total a/r for the salesman.
But, salesman #2's totals includes salesman's #1. The sums don't appear to
be resetting after the group prints.
Any clues to what I'm missing would be greatly appreciated.
Kevin
This discussion has been closed.
Comments
ResetGroup property of the DBCalc is set to the proper group. If you are
using a variable to do the sum then make sure you reset the varuable
yourself at the start of every group.
Check out the demo at
http://www.digital-metaphors.com/tips/PercentageOfGroupTotal.zip for an
example of calculating group total percentages.
--
Cheers,
Alexander Kramnik
Digital Metaphors
http://www.digital-metaphors.com
info@digital-metaphors.com
I will be trying the code out shortly.
After taking a quick look, isn't there a memory leak by not freeing each
object instance in the FCustomerTotals TList?
Kevin
"Alexander Kramnik (Digital Metaphors)" wrote
--
Cheers,
Alexander Kramnik
Digital Metaphors
http://www.digital-metaphors.com
info@digital-metaphors.com