Subreport Detail_Format being called twice

S

steveo

Within the detail_format you could declare a static
variable and set it to false.

if staticVariable = false then

Then do a while recordset.eof =false loop OR

counter = counter +1
do while counter < recordset.count
loop

staticVariable = true

Anyway, you can set the static variable to true when the
first loop has finished and this will stop the second
loop. Then on the change of page you could set the static
back to false.....


or something...

If possible, always use a real recordset which is pre-
calculated.

Also, test to see that your calculations are printed the
same as they appear on screen.
I had to move the code to the onPrint of the detail
section, as the numbers added up on screen but did not
when printing.
 
Top