Crystal error: A summary has been specified on a non-recurring field.
Im encountering the following error while trying to aggregate a formula field in one of my reports:
"A summary has been specified on a non-recurring field"
The report calls a subreport in the details section which returns a shared currency variable for every record generated. Im capturing this varaiable using a formula field say Temp1 as below,
Shared CurrencyVar ExRate;
Im using Temp1 in another formula field Temp2 to perform calculation using another formula field as below,
@Temp1 * @Actual
I have to aggregate Temp2 for each group of records the report generates.
But the report isnt letting me do so via the insert menu. On manually adding the sum function in a formula, it says "cannot summarize field". If i add sum(temp2) to an existing formula field on the report, it gives the error 'A summary has been specified on a non-recurring field' while running it.
Have been stuck on this for a while.
Any Pointers will be appreciated.
A summary cannot be done on a shared variable or on a formula that has an evaluation time of whileprintingrecords;
A summary can only be done on formuals that are evaluated Whilereadingrecords.or on a database field