D
don
I am trying to limit the number of characters one can
enter into an UNBOUND textbox other than using the input
mask.
The following code is not working but not sure why:
Private Sub GabId_Change()
On Error GoTo ErrorHandler
Dim lFieldLength
lFieldLength = 9
if len(me.[GabId])> lFieldLength then
Me.[GabId] = Left(Me.[GabId], lFieldLength)
End If
Exit Sub
ErrorHandler:
MsgBox Err.Number & vbCrLf & vbCrLf & Err.Description
End Sub
Thanks in advance
don
enter into an UNBOUND textbox other than using the input
mask.
The following code is not working but not sure why:
Private Sub GabId_Change()
On Error GoTo ErrorHandler
Dim lFieldLength
lFieldLength = 9
if len(me.[GabId])> lFieldLength then
Me.[GabId] = Left(Me.[GabId], lFieldLength)
End If
Exit Sub
ErrorHandler:
MsgBox Err.Number & vbCrLf & vbCrLf & Err.Description
End Sub
Thanks in advance
don