Calculation
Hi list,
i've this little problem:
one Main Report
one Sub Report
In the main Report i need to print the total of a column in the Sub Report.
So i've created a global var: ntottempo ( double ).
In the Sub Report Detail band i've created a variable (variable1). In the
OnCalc event i've coded:
ntottempo := ntottempo + SCHEDE['TEMPO_TOTALE'];
In the Main Report i've created a variable (variable2) and in the OnCalc
event i've coded:
value := ntottempo;
In the variable2 OnReset event i've coded;
ntottempo := 0;
The variable2 timing is:
Transverse
End Group;
After many checks i've noted variable2 doesn't calculate the "last" record
in the SubReport.
Where i'm wrong?
Thanks.
Paolo
i've this little problem:
one Main Report
one Sub Report
In the main Report i need to print the total of a column in the Sub Report.
So i've created a global var: ntottempo ( double ).
In the Sub Report Detail band i've created a variable (variable1). In the
OnCalc event i've coded:
ntottempo := ntottempo + SCHEDE['TEMPO_TOTALE'];
In the Main Report i've created a variable (variable2) and in the OnCalc
event i've coded:
value := ntottempo;
In the variable2 OnReset event i've coded;
ntottempo := 0;
The variable2 timing is:
Transverse
End Group;
After many checks i've noted variable2 doesn't calculate the "last" record
in the SubReport.
Where i'm wrong?
Thanks.
Paolo
This discussion has been closed.
Comments
This sounds like a timing issue. Try adjusting the reset timing of
variable2 and see if you can find a setting that works.
--
Regards,
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com