hi, can anyone tell me whats the difference between using
whileReadingRecords and whilePrintingRecords in a formula field?
im using CR9.2 in a vb6.0 applications, and i have a very strange problem, i use some formulas to calculate the GrandTotals, because there are some conditions and i need some subreport fields, and sometimes it is right, and sometimes its not, and every time i click on the refresh button it changes between two results (one is right, and one is wrong) im wondering if it has something to do with the while im using.. i have something like this:
in the group footer of my report:
the shared variable subTotal, comes from a subreport.
then i have this, that keeps an acumulate of the totals of each group
in my GrandTotal Field:
is there anything wrong? im kind of new in using formular in CR..
thank You very much
Eli
whileReadingRecords and whilePrintingRecords in a formula field?
im using CR9.2 in a vb6.0 applications, and i have a very strange problem, i use some formulas to calculate the GrandTotals, because there are some conditions and i need some subreport fields, and sometimes it is right, and sometimes its not, and every time i click on the refresh button it changes between two results (one is right, and one is wrong) im wondering if it has something to do with the while im using.. i have something like this:
in the group footer of my report:
Code:
WhileprintingRecords;
shared currencyvar tot:=Sum ({VentasDetalle.Total}, {Productos.id})- shared currencyvar subTotal;
then i have this, that keeps an acumulate of the totals of each group
Code:
WhilePrintingRecords;
shared currencyvar Acum:= Acum + shared currencyVar tot;
in my GrandTotal Field:
Code:
WhilePrintingRecords;
shared currencyvar Acum;
is there anything wrong? im kind of new in using formular in CR..
thank You very much
Eli