BLeslie88
B Leslie
- Local time
- Today, 12:55
- Joined
- May 9, 2002
- Messages
- 228
Default value = "000000"
now how do I check what user is entering....?
If on keypress ... first entry is.... say '9' following code shows "000000" and length 6 ... when actual length is 1....
Private Sub txtFld03001_KeyDown(KeyCode As Integer, Shift As Integer)
Dim lenChk As Long
If KeyCode = 9 Then
Else
lenChk = Len(txtFld03001)
End If
lenChk = Len(txtFld03001)
End Sub
I go in to break mode to check value on keypress... I get "000000" ....
Quite useless. I am aiming to tab to next control once they have entered the 6 length requirement.
Goal is to have this application as user friendly as possible, so auto tabbing is a current goal.
Obviously one way around this is to change the default value.
But thereafter entering the first line of data, all data carries down to next line to avoid dbl entry and speed up entry... so.... is there a way to do this...?
now how do I check what user is entering....?
If on keypress ... first entry is.... say '9' following code shows "000000" and length 6 ... when actual length is 1....
Private Sub txtFld03001_KeyDown(KeyCode As Integer, Shift As Integer)
Dim lenChk As Long
If KeyCode = 9 Then
Else
lenChk = Len(txtFld03001)
End If
lenChk = Len(txtFld03001)
End Sub
I go in to break mode to check value on keypress... I get "000000" ....
Quite useless. I am aiming to tab to next control once they have entered the 6 length requirement.
Goal is to have this application as user friendly as possible, so auto tabbing is a current goal.
Obviously one way around this is to change the default value.
But thereafter entering the first line of data, all data carries down to next line to avoid dbl entry and speed up entry... so.... is there a way to do this...?
Last edited: