Is it possible that {ICDET1.ITQOHA} is null instead of having an empty string? Do you ever initialize aaa to some value? Where are you putting the formula?
I might do a couple of things here:
1. If {ICDET1.ITQOHA} can be null, turn on "Default values for nulls" under null handling in the Formula Editor.
2. You might change your approach. Try creating a formula like this:
if {ICDET1.ITQOHA} = '' then
-1.0 * {ICDET1.ITQOHA}
else
{ICDET1.ITQOHA}
3. You can now use this formula in a summary or a running total instead of having to add it all up using a variable.
-Dell








.jpg)



