On Mon, 13 Feb 2006 14:01:38 -0500, MLH wrote:
Thx. Was hoping that I could monitor this during actual entry
of characters into the textbox. IE, on the 200th character, it
wouldn't allow subsequent keystrokes to place chars in the
control.
You can count the number of characters as you enter them.
Add another unbound text control.
Change the previous Change event code to:
Private Sub ControlName_Cha nge()
' To count up to the maximum number of characters
[OtherControl] = len(Me![ControlName].Text)
' Or to count down from 10 to the remaining number of characters
' [OtherControl] = 10 - len(Me![ControlName].Text)
If Len([ControlName].Text) = 11 Then
MsgBox "No more then 10 characters are permitted."
[ControlName].Text = Left([ControlName].Text, 10)
End If
End Sub
--
Fred
Please respond only to this newsgroup.
I do not reply to personal e-mail