Hi,
i have looked all over and can't seem to nail this down.
i am sure this is a very simple one.
i have a report with a sub report, text boxes in the foorter of the main report with this as control source
this is to check if data and sum the sub report.
then i have another box to sum the main report and add the value of the firsttext box with this
the problem i am having is what if the main report has no data then i get the #error in the textbox.
that is why i have tried the nz() in front of the formula, but it does not work.
is there a way of doing this?
thanks,
Sylvain
i have looked all over and can't seem to nail this down.
i am sure this is a very simple one.
i have a report with a sub report, text boxes in the foorter of the main report with this as control source
Code:
=IIf([rptContractExtraSub].[Report].[HasData],nz([rptContractExtraSub].[Report].[txtSumNet],0),0)
then i have another box to sum the main report and add the value of the firsttext box with this
Code:
=nz(Sum([originalcontract]-([originalcontract]*0.08)),0)+[txtExtraNetTotal]
that is why i have tried the nz() in front of the formula, but it does not work.
is there a way of doing this?
thanks,
Sylvain