G
Guest
I want to make a textbox that will not allow more than 10 characters. How do
I set the max characters or limit to 10 characters? Thanks.
I set the max characters or limit to 10 characters? Thanks.
lanem said:I want to make a textbox that will not allow more than 10 characters. How do
I set the max characters or limit to 10 characters? Thanks.
lanem said:I want to make a textbox that will not allow more than 10 characters. How do
I set the max characters or limit to 10 characters?
Marshall Barton said:lanem said:I want to make a textbox that will not allow more than 10 characters. How do
I set the max characters or limit to 10 characters?
If you don't want to set the field length to 10, then you
could set the text box's Validation Rule to:
Len([Text0])<=10
and set the Validataion Text to a meaningful message.
If you want to check the length as the user is typing, then
use the text box's Change event:
If Len(Text0.Text) > 10 Then
Beep
Text0.Text = Left(Text0.Text, 10)
Text0.SelStart = 10
End If