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 / February 2007

Tip: Looking for answers? Try searching our database.

Subform GotFocus event not firing.

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Jay - 08 Feb 2007 20:23 GMT
Main form with 3 subforms, one on each page of a 3-page Tab Control.

Each subform has a gotfocus event, but that event only fires for SubForm1
when the main form (and its 3 subforms) opens.

Switching to the other pages and selecting a field on a subform does not
fire its GotFocus event.

How do you ensure that a subform's GotFocus event fires?
Signature

Thanks,
Jay

Dirk Goldgar - 09 Feb 2007 04:11 GMT
> Main form with 3 subforms, one on each page of a 3-page Tab Control.
>
[quoted text clipped - 5 lines]
>
> How do you ensure that a subform's GotFocus event fires?

Subform controls don't have a GotFocus event, and I don't think the
GotFocus event of a form ever fires unless there is no control on the
form capable of receiving the focus (though I could be wrong about
that).  I suspect that what you want to be using is the Enter events of
the subform controls.

Signature

Dirk Goldgar, MS Access MVP
www.datagnostics.com

(please reply to the newsgroup)

Jay - 09 Feb 2007 20:57 GMT
Dirk -

Thanks for the response and the tip.  Based on your feedback, I'm pursuing a
modified track.  I'll let you know if I discover any difinitive approaches.

Thanks again,
Signature

Jay

> > Main form with 3 subforms, one on each page of a 3-page Tab Control.
> >
[quoted text clipped - 11 lines]
> that).  I suspect that what you want to be using is the Enter events of
> the subform controls.
 
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.