Restrict number of character in Text Box

R

Robin

Hi

Can anyone help. How to restrict the number of character enter into the Text
Box. The Text Box is not linked to anything, just a normal Text Box.


Regards
Robin
 
D

David Straker

Robin,

An Input Mask of CCCCCCC, for example, should restrict the number of
characters to a maximum of 7.

hth,
David Straker
 
R

Robin

However I need to display what the user type in the Text Box. Is there any
other way. My purpose is to restrict user entering not more than 5 character
and user can see what they type.
 
V

Van T. Dinh

Don't get confused between the InputMask and the Formatting String.
InputMask is used to control how data is entered. Formatting is used to
control how data is display. They are 2 distinct Properties.

Set the InputMask of your TextBox to "CCCCC".

See Access Help for InputMask Property and Format Property.
 
R

Robin

Thank you very much Van T. Dinh.

Regards
Steve

Van T. Dinh said:
Don't get confused between the InputMask and the Formatting String.
InputMask is used to control how data is entered. Formatting is used to
control how data is display. They are 2 distinct Properties.

Set the InputMask of your TextBox to "CCCCC".

See Access Help for InputMask Property and Format Property.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top