Hidding error messages

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Is there anyway to hide error messages? I have two field in my report that
are zero divded by zero issues. So I get #num! and then another field that is
based on the #NUM! field comes back as #error. it is only in those fields
that have zero as a value. I have access 97 so conditional formating is not
an option for me. Thanks
 
Handle the condition that is causing the error by eliminating the problem. One
way might be using an IIF statement in your record source. Something like:

Field: DoTheMath: IIF(SomeField=0,0,AnotherField/SomeField)
 
Jason,

Try iif([sometimesZeroField]=0,"",normalCalculation)

This should display nothing if the offending field is zero.

HTH,

Terry
 
John,

Thank you very much. That should help. I don't know why I never though of it
Jay
 
Where do you type this calculation? I am working in a report that looks bad
with the #ERROR and #NUM in the middle of it. I have tried including it in
an expression but it is not working. Please help.

Terry said:
Jason,

Try iif([sometimesZeroField]=0,"",normalCalculation)

This should display nothing if the offending field is zero.

HTH,

Terry
-----Original Message-----
Is there anyway to hide error messages? I have two field in my report that
are zero divded by zero issues. So I get #num! and then another field that is
based on the #NUM! field comes back as #error. it is only in those fields
that have zero as a value. I have access 97 so conditional formating is not
an option for me. Thanks
.
 

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