Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Determine Max Lenght for a text box

Status
Not open for further replies.

Gti

Programmer
Jul 23, 2001
99
PT
I have a text box and what i want is determine the max lenght. How can i do it??

Tkx ;-)
 
If you want to know how many characters are in the text box, use the Len function. If however, you want to know the maximum number of characters you can have in a text box, then it is 255. If you need more than 255 then you will need to change the field to a Memo field.
 
Sorry DNJ but you don't understand.
What i need is when a user put anything in the text box, can put only 2 caracters. Do you know something to do it?

Tkx

;-)
 
Hi GTI,
Sorry to have got the wrong end of the stick. Depends on whether the text box is bound or unbound. If bound, then you can limit the number of characters in the table. Go to the table design and set the field length to 2 If the text box is unbound, then you can use an input mask. The help file will give you format you require. Just type in Input Mask and look for Examples of Input Masks.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top