sum field error

  • Thread starter Thread starter JIM.H.
  • Start date Start date
J

JIM.H.

Hello,
In my report I use Sum([fieldName]) to find the total in
my report. If there is no detail data listed this returns
error. How should I say show 0.
Thanks,
Jim.
 
JIM.H. said:
In my report I use Sum([fieldName]) to find the total in
my report. If there is no detail data listed this returns
error. How should I say show 0.


Use the report's HasData property to check for that
situation:

=IIf(Report.HasData, Sum([fieldName]), 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

Back
Top