G
Guest
Good morning,
I am trying to sum two fields in a query. At present I have two fields,
Settlement_In and Settlement_Out and I am trying to sum these fields to
obtain on field called Settlement. Only one of the two fields will have a
value in it at any one time, and the Settlement_Out field will always be a
negative number.
At present the two fields are formatted as follows:
SETTLEMENT_IN: Format(NZ([SETTLEMENT_IN_EUR],0),"Fixed")
SETTLEMENT_OUT: Format(NZ([SETTLEMENT_OUT_EUR],0),"Fixed")
And the Settlement field is totalled as follows:
SETTLEMENT: [SETTLEMENT_IN]+[SETTLEMENT_OUT]
This works fine when the numbers being summed are positive, but does not
when one of the numbers is a negative (ie for a settlement out).
Eg
SETTLEMENT_IN SETTLEMENT_OUT SETTLEMENT
25000.00 0.00 25000.00
0.00 -1000.00 0.00-1000.00
Please could you assist with this?
I am trying to sum two fields in a query. At present I have two fields,
Settlement_In and Settlement_Out and I am trying to sum these fields to
obtain on field called Settlement. Only one of the two fields will have a
value in it at any one time, and the Settlement_Out field will always be a
negative number.
At present the two fields are formatted as follows:
SETTLEMENT_IN: Format(NZ([SETTLEMENT_IN_EUR],0),"Fixed")
SETTLEMENT_OUT: Format(NZ([SETTLEMENT_OUT_EUR],0),"Fixed")
And the Settlement field is totalled as follows:
SETTLEMENT: [SETTLEMENT_IN]+[SETTLEMENT_OUT]
This works fine when the numbers being summed are positive, but does not
when one of the numbers is a negative (ie for a settlement out).
Eg
SETTLEMENT_IN SETTLEMENT_OUT SETTLEMENT
25000.00 0.00 25000.00
0.00 -1000.00 0.00-1000.00
Please could you assist with this?