Hi All,
I am using CR XI. I have a sql query that returns summed up values (4 rows to be exact)
Item Sum
---- ---
A 10
B 20
C 40
D 5
Now using crystal I have to show these values up on the report header, in a pretty format.
So I have created formulas with variables that store these values. The formula is :
WhilePrintingRecords;
NumberVar TotalA:= 0;
While not OnLastRecord
Do
If {Command.Item} = 'A'
Then TotalA := TotalA + {Command.Sum}
I was planning to do the same for each Item (A, B,C, D) but this formula is thowing an error "A loop was evaluated more than the maximum number of times allowed".
How do I get around this issue?
Thanks in advance for any help,
Sumitra.
I am using CR XI. I have a sql query that returns summed up values (4 rows to be exact)
Item Sum
---- ---
A 10
B 20
C 40
D 5
Now using crystal I have to show these values up on the report header, in a pretty format.
So I have created formulas with variables that store these values. The formula is :
WhilePrintingRecords;
NumberVar TotalA:= 0;
While not OnLastRecord
Do
If {Command.Item} = 'A'
Then TotalA := TotalA + {Command.Sum}
I was planning to do the same for each Item (A, B,C, D) but this formula is thowing an error "A loop was evaluated more than the maximum number of times allowed".
How do I get around this issue?
Thanks in advance for any help,
Sumitra.