supress "error"

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

Guest

How do I suppress "error" display on a calculated field where the input
values are null?
THanks!!
 
Use the Nz() function. It's in the help file.

Sam
 
You can test the input values with an IIF and if one or the other is null
then return null otherwise do the calculation. This works in a query.

IIF(IsNull(Field1) or IsNull(Field2), Null, Field1 mod Field2)

In a procedure you would need to use an If ...Else...End If block to avoid
the error.
 

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