I am trying to calculate payments from a subform and then have them subtracted from the total on my main form.
Main form name is OrderDetails, subform is named OrdersPaymentSub
1. =[txtOrderSubtotal]+Nz([FreightCharge])+Nz([Taxes])-[txt102] ' txtOrderTotal Minus Sum of Payments,i.e. txt102
2. =TPaymentSub.Form!SumPayment ' Sum of Payments on subform. Default value is 0
1. equals the total on main form minus the sum of payments on the subform.
2. equals the sum of payments on the subform
Problem is that if NO payments are made, it makes my formula not work.
1. main form will have no value from subform
I have tried the Nz thing with no success.
Such as =Nz([txt102],0)