Hi everyone,
I have a form with 2 textboxes on it.
When the form loads text1 has focus by default because it is the first tab index. I have a hand scanner that puts data into the textbox. After the data goes in, what event should I use to set focus to text2.
This is what did not work
Private Sub Text1_Change()
Form1.text2.setfocus
End Sub
It captures the first character of a ten digit bar code and the other 9 go into text2. What's wrong? What should I be doing? I didn't see a afterUpdate in the event drop down list. Not used to VB.
Thanks all
PB
I have a form with 2 textboxes on it.
When the form loads text1 has focus by default because it is the first tab index. I have a hand scanner that puts data into the textbox. After the data goes in, what event should I use to set focus to text2.
This is what did not work
Private Sub Text1_Change()
Form1.text2.setfocus
End Sub
It captures the first character of a ten digit bar code and the other 9 go into text2. What's wrong? What should I be doing? I didn't see a afterUpdate in the event drop down list. Not used to VB.
Thanks all
PB