D
danc09
Using A2K, I have two tables, tblCustomer and tblPayments. tblCustomer has an
original amount field. I have a mainform based on a query of tblCustomer with
a subform based on a query of tblPayments. On the subform footer is an
unbound textbox which displays the balance of the account, using the original
amount from the main form minus the sum of payment transactions. The formula
on the mainform is:
=nz([Forms]![frmStartup]![ARAmount])+Sum(nz([PmtAmt]))
This works fine if there are transactions to display on the subform.
However, if I add a new customer with an original amount, no balance is
displayed in the subform footer. It seems that I need to be able to check to
see if there are transactions and display either the original amount or use
the formula above.
Any help will be greatly appreciated.
Thanks very much.
Dan
original amount field. I have a mainform based on a query of tblCustomer with
a subform based on a query of tblPayments. On the subform footer is an
unbound textbox which displays the balance of the account, using the original
amount from the main form minus the sum of payment transactions. The formula
on the mainform is:
=nz([Forms]![frmStartup]![ARAmount])+Sum(nz([PmtAmt]))
This works fine if there are transactions to display on the subform.
However, if I add a new customer with an original amount, no balance is
displayed in the subform footer. It seems that I need to be able to check to
see if there are transactions and display either the original amount or use
the formula above.
Any help will be greatly appreciated.
Thanks very much.
Dan