View Full Version : auto tabbing from combo box?


russi
11-27-2000, 11:16 AM
Dta entry folks are complaining that if they do not hit 'enter key' after choosing an option from a combo-box-field, that they have to click or actually use the tab key.

They want to click on a choice in those fields and have the cursor move automatically to the next field.

Any ideas? Thanks.

SomeGuy
11-27-2000, 01:36 PM
Something like this might work:

Private Sub ComboBoxName_AfterUpdate()
If (Not IsNull(Me!ComboBoxName)) Then
Me!NextFieldName.SetFocus
End If
End Sub

You might also have to include the following (but I'm not sure so you should try the first part first):

Private Sub Form_Current()
Call ComboBoxName_AfterUpdate
End Sub