SetFocus to a text box on a sub form after loading complete

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I need to be able to setfocus to a sub forms text box AFTER the Main form and
the Sub form is loaded. It doesn't matter what event I place the 'setfocus'
- it doesnt do it. In fact when I press the tab key (only text boxes on sub
form showing) the cursor is invisible and is no where to be found. I imagine
I'm really on the main form (still) - somewhere. Does anyone have the "which
event to use on the main form to place the cursor in a text box on the sub
form" after all is said and done.

thanks for any help....
 
I need to be able to setfocus to a sub forms text box AFTER the Main form and
the Sub form is loaded. It doesn't matter what event I place the 'setfocus'
- it doesnt do it. In fact when I press the tab key (only text boxes on sub
form showing) the cursor is invisible and is no where to be found. I imagine
I'm really on the main form (still) - somewhere. Does anyone have the "which
event to use on the main form to place the cursor in a text box on the sub
form" after all is said and done.

thanks for any help....

Mike,

The Form's OnCurrent event should allow you to set the focus to the
sub form. Also, make sure the specific control on your sub form that
you want to get initial focus is set to TabIndex 0.

- GH
 
Back
Top