B
Bob
I have form and linked subform, frmMain and subform1. I want to intercept
the event that is triggered when I try to move to the next record on
frmMain. Before I am allowed to move to the next record shown on frmMAin. I
need to verify that the sum of all amounts in column 2 for the records in
Subform1 is 0.
I don't think I can use the BeforeUpdate event of frmMain, since the record
dat of frmMain is already saved when my user goes from frmMain to subform1,
so moving to the next frmMAin record would not trigger the BeforeUpdate evnt
of frmMain. Similarly the BeforeUpdate event of subform1 will trigger every
time we change rows and that validation only needs to be done before we
close the form or when we try to move off the current record shown on
frmMain.
I'm logically thinking of what event is available to trap before I complete
the move to another record (next or previous) on frmMain, I can't seem to
find any directly in the list of available events for the form.
Can anyone give me an idea or a bit of sample code that I can use to do
this?
Thanks for any help.
Bob
the event that is triggered when I try to move to the next record on
frmMain. Before I am allowed to move to the next record shown on frmMAin. I
need to verify that the sum of all amounts in column 2 for the records in
Subform1 is 0.
I don't think I can use the BeforeUpdate event of frmMain, since the record
dat of frmMain is already saved when my user goes from frmMain to subform1,
so moving to the next frmMAin record would not trigger the BeforeUpdate evnt
of frmMain. Similarly the BeforeUpdate event of subform1 will trigger every
time we change rows and that validation only needs to be done before we
close the form or when we try to move off the current record shown on
frmMain.
I'm logically thinking of what event is available to trap before I complete
the move to another record (next or previous) on frmMain, I can't seem to
find any directly in the list of available events for the form.
Can anyone give me an idea or a bit of sample code that I can use to do
this?
Thanks for any help.
Bob