G
Guest
I have a form containing a subform and I want to validate some data on the
subform when the main form is updated. When the BeforeUpdate event fires on
the main form, it checks (in VBA code) two fields on the subform and if the
user must change one of them it does a DoCmd.CancelEvent. This stops the
record from being updated, but it doesn't allow the user to the the field on
the subform because when they move to the subform to do it, the BeforeUpdate
event fires again which in turn displays the same error message and cancels
the update. Does anyone know how to get around this or is it enough
information to go on.
Thanks in advance,
subform when the main form is updated. When the BeforeUpdate event fires on
the main form, it checks (in VBA code) two fields on the subform and if the
user must change one of them it does a DoCmd.CancelEvent. This stops the
record from being updated, but it doesn't allow the user to the the field on
the subform because when they move to the subform to do it, the BeforeUpdate
event fires again which in turn displays the same error message and cancels
the update. Does anyone know how to get around this or is it enough
information to go on.
Thanks in advance,