Hi
Is it possible to prevent the AfterUpdate event firing on a main form when a subform on the same form has been selected?
Have tried Screen.ActiveControl.Name to identify if the subform has received the focus but it appears that the main form AfterUpdate event fires and the last control to have the focus is the one on the main form immediately prior to shifting focus onto the subform.
The code in the AfterUpdate event is to send an automatic e-mail of the record in the main form that has either been added or has been edited – tried and trusted method but the presence of a subform throws a spanner in the works.
Thanks
Is it possible to prevent the AfterUpdate event firing on a main form when a subform on the same form has been selected?
Have tried Screen.ActiveControl.Name to identify if the subform has received the focus but it appears that the main form AfterUpdate event fires and the last control to have the focus is the one on the main form immediately prior to shifting focus onto the subform.
The code in the AfterUpdate event is to send an automatic e-mail of the record in the main form that has either been added or has been edited – tried and trusted method but the presence of a subform throws a spanner in the works.
Thanks