Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Default Not Displayed in SubReport if no records

Status
Not open for further replies.

iceicebaby

Programmer
Mar 18, 2004
15
0
0
US
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:
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;
The problem is it doesn't display the value '0' in the Subreport in case there are no records fetched. Please help.
 
If there aren't any rows, then the subreport has nothing to display.

You might conditionally suppress a section that checks for the recordnumber in the subreport and display 0 when there aren't any.

-k
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top