Mike Hughes
02-29-2004, 07:19 AM
I use the following to determine the % of current paid of the current owed.
=([CURRENT PAID]/[CURRENT OWED])*100
This works fine...but when there is no data in the current paid and current owed fields I get some type of formula in the place where, I would think, 0 or an empty field should go. I can't see the entire entry because the field is too narrow.
(Some of the Paid and Owed fields are either empty(null) or contain $0.00)
Can someone tell me how to either have the % field come up empty or with a 0 when there is a record with no data to create the % amount or when the data in the fields is $0.00.
With the help of another I have also tried this:
=IIF([CURRENT OWED])=0,0,IIF([CURRENT PAID])=0,0,nz([CURRENT PAID])/nz([CURRENT OWED])*100)))
But I get this error when I try to use this one: "The expression you entered has a function containing the wrong number of arguments "
=([CURRENT PAID]/[CURRENT OWED])*100
This works fine...but when there is no data in the current paid and current owed fields I get some type of formula in the place where, I would think, 0 or an empty field should go. I can't see the entire entry because the field is too narrow.
(Some of the Paid and Owed fields are either empty(null) or contain $0.00)
Can someone tell me how to either have the % field come up empty or with a 0 when there is a record with no data to create the % amount or when the data in the fields is $0.00.
With the help of another I have also tried this:
=IIF([CURRENT OWED])=0,0,IIF([CURRENT PAID])=0,0,nz([CURRENT PAID])/nz([CURRENT OWED])*100)))
But I get this error when I try to use this one: "The expression you entered has a function containing the wrong number of arguments "