Moving to next control box.

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

Ken Snell

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

Sigh

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.
 

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