Subform GotFocus event not firing.

J

Jay

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?
 
D

Dirk Goldgar

Jay said:
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?

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.
 
J

Jay

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,
 

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