Access #Error in calculated field

  • Thread starter Thread starter JPS
  • Start date Start date
J

JPS

I have an access query that returns #Error on fields where I am dividing a
number by zero.

My formula in the query grid is -----> Average:[Field1]/[Field2]

How can I prevent this?
 
TheAverage: IIf(IsNull([Field2])= True, Null, [Field1]/[Field2])
 

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