SubReport Question

G

GL

Hi,
I have a report which has three subreports. Each of the subreports has a
total that I then want to pull into the regular report to use as a
calculation. I know how to do all of this without a problem. However, the
problem arises when one of the subreports has no data for a particular
record, so instead of returning any data it returns nothing, which is ok,
except when I reference that value for my totals it comes up as an #Error -
instead I want it to come up as zero. I tried putting an if test in but
couldn't get it to know what I meant - any ideas would be so appreciated!!
GL
 
E

Evi

Use HasData in your main report's control.

ie =IIF([YourSubReport].Report.HasData=True,
[YourSubReport].Report.[txtSum1],0)

Evi
 

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