format calculated field

M

mabi

When inserting a calculation into a query, how would you
format the result to a default number (0) if the result
would be an error?

Example:
SELECT
.a,
.b, (
.a)/(
.b) AS c
ORDER BY (
.a)/(
.b) DESC

If a and b both contained 0, the result of (
.a)/
(
.b) would be "#ERROR" ... how can I get the field
to display "0"?

Thanks in advance for the help ....
 

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

Top