Main form AfterUpdate event

R

rferrari27

Hi all,
I have a main form (say MF_1) with a subform (say SBF_2);
MF_1 and SBF_1 are linked together.
In SBF_1 there is a comboBox field: whenever its value is changed,
the afterUpdate event fires ( both field and subform events).
As a consequence of that, I would like the afterUpdate event of
MF_1 to fire as well, but this does not happen.
I have noticed that the afterUpdate event of MF_1 fires only if a field
of the main form is changed, but it does not fire as a consequence of a
change in the subform.

Can someone tell me why the afterUpdate event of MF_1 does not fire?
Is there a way to either make it fires or to invoke the afterUpdate
event of main form?

Thanks in advance for any responses.
Roberto
 
R

rferrari27

Thank you!
I did not know that events are not propagated through forms.

In my personal opinion, if a subform "belongs" to a main form (with its
information)
and something is updated in the subform, it means the information in the
main form are changed, thus an action could be taken in the main form as well.
Final user does not distinguish between main form and subforms.

However, my idea was wrong and I am happy to learn a bit more!
Best regards,
Roberto
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top