G
Guest
I'm using Access 2k. I've got a form for entering invoices, each invoice can
have multiple lines and these are displayed with a linked subform. I need a
way to validate that the sum of the entered invoice lines in the subform
equals the invoice total on the parent form. I can't use the Main Form's
BeforeUpdate event since this event fires on entry into the subform (when
there may be no related lines entered yet). I attempted to cancel the exit
from the subform but since the record isn't inserted yet I can't check the
sum till that routine fails once. Any thoughts on how to do this or where to
hang some code to do this?
have multiple lines and these are displayed with a linked subform. I need a
way to validate that the sum of the entered invoice lines in the subform
equals the invoice total on the parent form. I can't use the Main Form's
BeforeUpdate event since this event fires on entry into the subform (when
there may be no related lines entered yet). I attempted to cancel the exit
from the subform but since the record isn't inserted yet I can't check the
sum till that routine fails once. Any thoughts on how to do this or where to
hang some code to do this?