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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Missing Zero - Please Help!!!!!!!!!!

Status
Not open for further replies.

midiman69

Technical User
Apr 27, 2005
34
GB
Hi

I have a report with four text boxes displaying subform totals.

One of them refuses to display zero if no data

=IIf([Reports]![rpprojects]![qrybom subreport].[Report].[HasData]=True,[Reports]![rpprojects]![qrybom subreport].[Report]![sumadjustcost],0)

The others work fine using a similar format

=IIf(Reports!rpprojects![qrybom subreport].Report.HasData=True,Reports!rpprojects![qrybom subreport].Report!totalsk/Reports!rpprojects!rpqryrates.Report!exrate,0)

All all formatted as Curency, 4 decimals.

Can any one help with this - I can't see anything wrong!!

Cheers

Dave

 
Is it possible that the control you are referencing is null? In other words, if the sub report has data but the summed field is null, you will not get a zero.
 
Dohhhhhhhh,

Thanks Remou

=Nz(Sum([Adjustprice]*[qty]),0)

Cured the problem

Cheers

Dave
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top