Subreport Error

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have a report that contains 2 subreports. The subreports have values that
are used in the report (like an invoice). My problem is that when my
subreport values are null my report calculations show error. How can I fix
this problem?

Van
 
IIf said:
I have a report that contains 2 subreports. The subreports have values that
are used in the report (like an invoice). My problem is that when my
subreport values are null my report calculations show error. How can I fix
this problem?


If the subreport actually has a Null value, then use the NZ
function.

If your problem is that the subreport has no records, then
there is no value, not even Null. In this case you can use:
=IIf(subreport.Report.HasData, subreport.Report.total, 0)
 
Back
Top