Subreport Error

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
 
M

Marshall Barton

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)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top