Moving to next control box.

  • Thread starter Thread starter Sigh
  • Start date Start date
S

Sigh

Hi,
How can I move to next control box from Form header
section to detail section of the form by press enter key?
I input the data into the Textbox in the Form header
section and press enter but it Does not move to text box
in the detail section.

Any help would be very appreciated.
 
Put a tiny textbox control in the form's header. Be sure that it's the last
control in the tab order. Make its height and width 0. On its OnGotFocus
event, put this code:

Private Sub SmallTextbox_GotFocus()
Me.NextControlName.SetFocus
End Sub

Replace SmallTextbox with the actual name of this tiny textbox, and
NextControlName with the actual name of the control that is to get the
focus.
 
Thank you. I try to get it to little further. as now I put
the combo Box1 in the Form's header. In the Detail section
I have the sub-Form within the Combo Box2. After I select
the item from my combo Box1 how can I get it to combo box2
in the Sub-Form on the detail section?

Thanks again.
 
Back
Top