iceicebaby
Programmer
I'm using CR 8.5 and Oracle 8. I'm using a SubReport in my Report which is a Field with the following Formula:
The problem is it doesn't display the value '0' in the Subreport in case there are no records fetched. Please help.
Code:
Shared NumberVar Temp:=0;
Temp;
WhilePrintingRecords;
If {ADJUSTMENT.PRICE_PLAN} = 'AUMMC' And {ADJUSTMENT.PP_MAC_MMC_INT} = 'M' Then
Temp := {@MMCharge} - {@MMAdj}
Else Temp := 0;
Temp;