ok i understand. but where would the code go? in the after update event of the outstanding balance field? also, before to search for outstanding payments i just made a query that searched for all the Paid?=False. How can it be done now that i am not storing the field Paid?
Since you have already decided that Paid means Outstanding = 0 then look for [Outstanding] <> 0. What causes the [Outstanding] field to get its value? You may be fighting a slight design SNAFU.
sub form total (calculated)
then discount (unbound/recorded)
then total (calculated by subform total - discount)
then deposit (unbound/recorded)
then balance paid to date (unbound/recorded)
then amount outstanding (calculated by total-deposit-balance paid to to date)
it wont let me enter a criteria for calculated fields in a query. i want to enter >0 for amount outstanding and it just asks me to enter a value for another calculated field...?