Computed Expression help
We are using MKS Integrity 2009 SP5. Yes, I know we need to upgrade, but we are under-staffed.
I am trying to make a calculation (Computed expression Integer type field) work. When I try to edit an item I get an error "Division by zero has been detected processing the query on the server". I understand the error. I don't know how I can resolve it. What I am doing is dividing 2 integer fields to return a percentage. Example: field3 (Integer) computed expression: "field1" / "field2". These 2 fields are divided to give a percentage.
If field1 = 10 and field2 = 100 then field3 should display 10%.
However, if field1 and/or field2 has zero (default) then the division error is displayed. I understand you cannot divide a number by zero.
If field1 = 0 and field2 = 100 then field3 should display 0%.
How can I get it to simply calculate or say 0%, because that is what it should be?
Thank you,


