PDA

Click to See Complete Forum and Search --> : text boxes


fassumpcao
May 7th, 2000, 04:46 AM
Good evening.
I'll ask something. I have a field in a database's table that is 3 (three) charecters long. How can I make the textbox that I'm going to use to edit this field. How can I make the textbox be 3 (three) characters long?
Thanks for the help
Felipe

curlywink
May 7th, 2000, 06:27 AM
Hi there,

Wanna' try this.

Private Sub Text1_Change()
If len(trim(Text1.Text)) > 3 then
Text1.Text = left(Text1.Text,3)
End If
End Sub

Vit
May 7th, 2000, 02:23 PM
In textboxe's Properties set MaxLength=3

fassumpcao
May 9th, 2000, 08:35 AM
I'd like to thanks everyone that answered my question.
Thanks a lot
Felipe