Error displayed in summary section of report with no data

R

Robin9876

In an Access 2003 report which has a summary section which Sums a
value in the detail section, when there is no data #Error appears at
the Sum(myField) section. There is no sub reports on this report.

How can the #Error text not be shown when their is no data?
 
M

Marshall Barton

Robin9876 said:
In an Access 2003 report which has a summary section which Sums a
value in the detail section, when there is no data #Error appears at
the Sum(myField) section. There is no sub reports on this report.

How can the #Error text not be shown when their is no data?


Try using something like:

=IIf(Report.Hasdata, Sum( . . . ), Null)
 

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