By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
446,327 Members | 1,891 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 446,327 IT Pros & Developers. It's quick & easy.

Supressing #Error in Access reports ?

P: n/a
In an Access report, where there is a total line using the SUM()
function against a field in the detail rows, is there a way to
suppress the "#Error" that Access displays in that calculated field
when do data records exist in the query the report is based on. This
seems like it should be easy, but I haven't found it yet.

~bp
Nov 12 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
DFS
"Bill Prew" <bi******@hotmail.com> wrote in message
news:2e**************************@posting.google.c om...
In an Access report, where there is a total line using the SUM()
function against a field in the detail rows, is there a way to
suppress the "#Error" that Access displays in that calculated field
when do data records exist in the query the report is based on. This
seems like it should be easy, but I haven't found it yet.


Bill,

You'll probably need to use a conditional statement as the control source in
your total line, something like:

=iif(Sum(Field) > 0, Sum(Field),null)

or

=iif(Sum(Field) > 0, Sum(Field),'na')
Nov 12 '05 #2

P: n/a
No, this doesn't work either, it still gives "#Error" on the report
for that calculated field.

Bill,

You'll probably need to use a conditional statement as the control source in
your total line, something like:

=iif(Sum(Field) > 0, Sum(Field),null)

or

=iif(Sum(Field) > 0, Sum(Field),'na')

Nov 12 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.