I have a Fees Form (Fees1) with a Payment subform including two calculations in the form footer:
TotalAmountPaid=Sum([AMOUNTPAID])
Balance=IIf(IsNull([TotalAmountPaid]),[Forms]![frmclient]![fees1]!feeamount, [Forms]![frmclient]![fees1]!feeamount-[TotalAmountPaid])
It works fine most of the time. Every now and then it decides to start treating negative numbers as positive. If a payment adjustment needs to be made, the data is entered as a negative in the subform (amountpaid field) with either parentheses or a dash. 80% of the time the amount gets subtracted as intended. Sometimes, however, it adds the amount to the Balance instead of subtracting it.
Any thoughts? Thanks.
TotalAmountPaid=Sum([AMOUNTPAID])
Balance=IIf(IsNull([TotalAmountPaid]),[Forms]![frmclient]![fees1]!feeamount, [Forms]![frmclient]![fees1]!feeamount-[TotalAmountPaid])
It works fine most of the time. Every now and then it decides to start treating negative numbers as positive. If a payment adjustment needs to be made, the data is entered as a negative in the subform (amountpaid field) with either parentheses or a dash. 80% of the time the amount gets subtracted as intended. Sometimes, however, it adds the amount to the Balance instead of subtracting it.
Any thoughts? Thanks.