Why is main form Update event triggered when subform dirties main form?

bluegno

Registered User.
Local time
Yesterday, 23:33
Joined
Nov 30, 2005
Messages
27
I have a subform which makes a change to a field on the main form. When focus is returned to the main form, the BeforeUpdate and AfterUpdate events fire. Why? I thought from the form's perspective, the subform is just another control.

BTW, I get the same behavior if I modify the field from within the Exit event of the subform control.

In either case, the main form's Dirty event is NOT triggered.
 
No, the subform is not just another control. When you enter a subform you are leaving the parent; the same applies vice versa.
 
SJ McAbney said:
No, the subform is not just another control. When you enter a subform you are leaving the parent; the same applies vice versa.
But then why does the Activate event not fire when the main form is returned to?
 

Users who are viewing this thread

Back
Top Bottom