
Problem with SUM function
I'm using Crystal Report 5
I have a report with subreports on it. In one of the subreports I
have a Grand Total in the report footer section.
To create this Grand Total, I click on the right button when I'm on
the field I want to sum in the detail section, and I choose "Insert
Grand Total" option.
But here's the problem. If the field from wich I want to add a Grand
Total consist of a formula, everyting works fine, but if I write an IF
THEN ELSE statement, the "Insert Grand Total" option is no longer
avaible.
---------------------------------------------------------------------------
e.g.
If there is one formula in the detail section.
formula 1. (right click and the Insert Grand Total option appear)
---------------------------------------------------------------------------
If there is an IF THE ELSE statement
if condition then
formula 1
else
formula 2
If I right click on the field, the Insert Grand Total option does not
apear.
I really need to add this Grand Total, please help !