Fuga
04-12-2002, 08:58 AM
I have a calculated field in a query.
Calcfld: (([field2]/[field1])*100)
In order to avoid error I use the following statement in the criteria:
IIf(IsNull([Field1]);"0";([calcfld]))
I think this should mean "If field1 is null, then return 0 to calcfld, otherwise return the calcfld value".
The problem is I get an overflow. How should I write the criteria to do the trick?
Fuga.
Calcfld: (([field2]/[field1])*100)
In order to avoid error I use the following statement in the criteria:
IIf(IsNull([Field1]);"0";([calcfld]))
I think this should mean "If field1 is null, then return 0 to calcfld, otherwise return the calcfld value".
The problem is I get an overflow. How should I write the criteria to do the trick?
Fuga.