Problem with #DIV/0 error, STILL

Mike Hughes

Registered User.
Local time
Today, 04:23
Joined
Mar 23, 2002
Messages
493
I have the following control source in a text box.
When there is a CURRENT OWED amount field there is no problem but
when there is no amount in the CURRENT OWED field I get the error #DIV/0

=Sum([CURR PAID])/Sum([CURR OWED])

If the CURR OWED = 0
I GET #DIV/0 ERROR

Would someone show me how to correct this so the result would be 0?

Thanks, Mike
 
Mike, I'm almost certain you've been shown how to avoid Div/0 errors, but here

=Sum([CURR PAID])/IIF(Sum([CURR OWED]) = 0, 1, Sum([CURR OWED]))
 
Now I do get an amount reather than Div/0 error, but the % is showing up as the ARREARS PAID amount. I have attached a screen shot.
 

Attachments

  • wrong percent.jpg
    wrong percent.jpg
    39.1 KB · Views: 147
Like so,

=IIF(Sum([CURR OWED]) = 0, 0, Sum([CURR PAID])/Sum([CURR OWED]))
 

Users who are viewing this thread

Back
Top Bottom