Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsFormsForms ProgrammingQueriesModules / DAO / VBAReports / PrintingMacrosDatabase DesignSecurityConversionImporting / LinkingSQL Server / ADPMultiuser / NetworkingReplicationSetup / ConfigurationDeveloper ToolkitsActiveX ControlsNew UsersGeneral 1General 2
Access DirectoryToolsTutorialsUser Groups
Related Topics
SQL ServerOther DB ProductsMS OfficeMore Topics ...

MS Access Forum / Forms Programming / April 2005

Tip: Looking for answers? Try searching our database.

Main form AfterUpdate event

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
rferrari27 - 27 Apr 2005 16:50 GMT
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
Lynn Trapp - 27 Apr 2005 18:15 GMT
I'm not sure what you are trying to do, but what  you are seeing is intended
functionality. There is no reason for the AfterUpdate event of your main
form to fire if nothing is being updated on THAT form.

Signature

Lynn Trapp
MS Access MVP
www.ltcomputerdesigns.com
Access Security: www.ltcomputerdesigns.com/Security.htm
Jeff Conrad's Big List: www.ltcomputerdesigns.com/JCReferences.html

> Hi all,
> I have a main form (say MF_1) with a subform (say SBF_2);
[quoted text clipped - 13 lines]
> Thanks in advance for any responses.
> Roberto
rferrari27 - 28 Apr 2005 11:08 GMT
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

> I'm not sure what you are trying to do, but what  you are seeing is intended
> functionality. There is no reason for the AfterUpdate event of your main
> form to fire if nothing is being updated on THAT form.
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.