Hi,
I wonder if anyone can explain why a numbervar will change it's value depending on which group section it is placed.
I sometimes need a value to show in the next group but find it changes when I move it down.
As far as I can tell, none of the component values change so I've not been able to figure out what is happening.
Here is an example of the group layout:
Group01 (Plant) Header ---- myCount Reset
Group02 (Class) Header
Details ------------------- myCount - Formula01 - (Value01 / Value02) - NumberVar01 (Formula / Count ) - Plant - Class
Group02 (Class) Footer ---------------------------------------------- NumberVar01 is correct
Group01 (Plant) Footer ---------------------------------------------- NumberVar01 is incorrect
(I've also tried moving the count reset to the Group01 footer)
And here are examples of the formulas I've been trying to use:
//@myCount
whileprintingrecords;
numbervar myCount;
myCount := myCount + 1
//@MyCountReset
whileprintingrecords;
numbervar MyCount;
MyCount := 0
//@Formula01
(Value01 / Value02)
//@NumberVar01
whileprintingrecords;
numbervar NumberVar01;
NumberVar01 := NumberVar01 + {@Formula01}/{@MyCount}
Thanks
Bruce O
I wonder if anyone can explain why a numbervar will change it's value depending on which group section it is placed.
I sometimes need a value to show in the next group but find it changes when I move it down.
As far as I can tell, none of the component values change so I've not been able to figure out what is happening.
Here is an example of the group layout:
Group01 (Plant) Header ---- myCount Reset
Group02 (Class) Header
Details ------------------- myCount - Formula01 - (Value01 / Value02) - NumberVar01 (Formula / Count ) - Plant - Class
Group02 (Class) Footer ---------------------------------------------- NumberVar01 is correct
Group01 (Plant) Footer ---------------------------------------------- NumberVar01 is incorrect
(I've also tried moving the count reset to the Group01 footer)
And here are examples of the formulas I've been trying to use:
//@myCount
whileprintingrecords;
numbervar myCount;
myCount := myCount + 1
//@MyCountReset
whileprintingrecords;
numbervar MyCount;
MyCount := 0
//@Formula01
(Value01 / Value02)
//@NumberVar01
whileprintingrecords;
numbervar NumberVar01;
NumberVar01 := NumberVar01 + {@Formula01}/{@MyCount}
Thanks
Bruce O