J
javiernews via AccessMonster.com
Hi,
I have the following scenario:
I have several text boxes in each text box must be filled up to 5 characters
(letters and numbers)
How to jump to the next text box automatically after filling the 5 characters
??????
I try with the following code but is not working well:
Private Sub txt1_Change()
On Error Resume Next
Me.Refresh
Me.txt1.SelStart = Me.txt1 - 1
If Len(Me.txt1) >= 5 Then
Me.txt2.SetFocus
End If
End Sub
Me.txt1 <<<< First Text box
Me.txt2 <<<< Second text box
etc......
any help will be wellcome !
I have the following scenario:
I have several text boxes in each text box must be filled up to 5 characters
(letters and numbers)
How to jump to the next text box automatically after filling the 5 characters
??????
I try with the following code but is not working well:
Private Sub txt1_Change()
On Error Resume Next
Me.Refresh
Me.txt1.SelStart = Me.txt1 - 1
If Len(Me.txt1) >= 5 Then
Me.txt2.SetFocus
End If
End Sub
Me.txt1 <<<< First Text box
Me.txt2 <<<< Second text box
etc......
any help will be wellcome !