I have a report with a sub subreport . Then subreport is there to calculate a certain total.
then on the main report I use the value from that subreport and display it as a total in a textbox.
The problem I have is that if that sub report does not have any records in it, the text box will show #Error, so I am trying to make it display o when null and the value if there is reocords in the subreport with this;
this will show 0 all the time
this will show the value of the subreport, but will show #Error when the subreport is empty..
I have tried using Nz in the formula in different ways, but i get much the same results...
Any ideas...
Thanks,
Sylvain
then on the main report I use the value from that subreport and display it as a total in a textbox.
The problem I have is that if that sub report does not have any records in it, the text box will show #Error, so I am trying to make it display o when null and the value if there is reocords in the subreport with this;
Code:
=IIf(IsNull([qreAccPricing]![SumOfPrice]),0)
Code:
=IIf(IsNull([qreAccPricing]![SumOfPrice]),0,([qreAccPricing]![SumOfPrice]))
I have tried using Nz in the formula in different ways, but i get much the same results...
Any ideas...
Thanks,
Sylvain