Why is main form Update event triggered when subform dirties main form? (1 Viewer)

bluegno

Registered User.
Local time
Yesterday, 17:15
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.
 

Mile-O

Back once again...
Local time
Today, 01:15
Joined
Dec 10, 2002
Messages
11,316
No, the subform is not just another control. When you enter a subform you are leaving the parent; the same applies vice versa.
 

bluegno

Registered User.
Local time
Yesterday, 17:15
Joined
Nov 30, 2005
Messages
27
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

Top Bottom