Access Query+division by 0 error

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

Guest

In Access, in a query, I want it to return a "0" if the calculation returns a
"DIV/0!" error. In Excel, my formula would be:
=IF(ISERROR(rate:[sold]/10),0,rate:[sold]/10). How do I do this in Access?
 
Gimpy815 said:
In Access, in a query, I want it to return a "0" if the calculation returns a
"DIV/0!" error. In Excel, my formula would be:
=IF(ISERROR(rate:[sold]/10),0,rate:[sold]/10). How do I do this in Access?


DOn't see how that expression can generate that error, but
the equivalent expression in Access would be (assuming that
Rate is a table in the query's From clause):

IIf(IsError([sold]/10),0,[sold]/10)
 

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

Similar Threads

revers minus 1
Division by Zero Error 1
Need Help soon with this querry!!!!!! PLZ PLZ 0
Access #Error & Excel Pivot 0
Math and Query...???? 7
Update Queries 11
Access Updating inventory levels 0
#Error when dividing by zero 2

Back
Top