i would like to know, how/where to put code/and if not possible why please!
You can't do this in a Table, but you can use the Form's BeforeUpdate event to
detect this condition. I'm not at all sure what you're summing over but you
should be able to use DSum() in the Form's event.
One possible problem if you're using a form and subform is that the main form
record is saved to disk when you first set focus to the subform, and each
subform record is likewise saved to disk when you move to the next - so a
BeforeUpdate event may cause an apparent error if the withdrawals are
processed before the deposits. You may need to store the "active" transactions
in a temporary table, and only move them to the actual table when complete and
validated.
John W. Vinson [MVP]