I want to know how Crystal Reports reference the rows in the details section. I used three formula reset formula:
Whileprintingrecords;
shared Numbervar rowvalue1 := 0;
shared Numbervar rowvalue2 := 0;
Calculation formula
Whileprintingrecords;
IF recordnumber=1 then shared Numbervar rowvalue1:=rowvalue1+{table.total};
IF recordnumber=2 then shared Numbervar rowvalue2:=rowvalue2+{table.total};
display formula
Whileprintingrecords;
Numbervar rowvalue3:=(shared numbervar rowvalue2)-(shared numbervar rowvalue1);
I have only two groups and 4 rows in my report I place
reset formula in group header
calculation formula in group details section
display formula in group footer
and the result was:
in the second group the result of substraction was 0 why? is crystal report work like that OR