On a form I am trying to display the following with data from different subforms:
casebalance + sum of additional fees - sum of all payments=current balance
I started with the following expression:
I found out that if any of the fields involved are null it returns a #Error. I did a good bit of research on tek-tips and via Google and thought I had the solution in the expression below but it still gives me the #Error if the [SumFees] portion is null:
I don't understand what I am doing wrong or how to fix it, so I would greatly appreciate some assistance.
Thank you in advance
casebalance + sum of additional fees - sum of all payments=current balance
I started with the following expression:
Code:
=Sum((sbfBalance.Form!InitBal+sbfFees.Form!SumFees)-sbfPayments.Form!SumPayment)
I found out that if any of the fields involved are null it returns a #Error. I did a good bit of research on tek-tips and via Google and thought I had the solution in the expression below but it still gives me the #Error if the [SumFees] portion is null:
Code:
=IIf(IsError(sbfPayments.Form!SumPayment) Or IsNull(sbfPayments.Form!SumPayment),sbfBalance.Form!InitBal,sbfBalance.Form!InitBal+sbfFees.Form!SumFees-sbfPayments.Form!SumPayment)
I don't understand what I am doing wrong or how to fix it, so I would greatly appreciate some assistance.
Thank you in advance