Results 1 to 4 of 4

Thread: text boxes

  1. #1

    Thread Starter
    New Member
    Join Date
    May 2000
    Posts
    4
    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

  2. #2
    Addicted Member curlywink's Avatar
    Join Date
    Mar 2000
    Location
    Manila, Philippines
    Posts
    141
    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

  3. #3
    Lively Member
    Join Date
    Mar 1999
    Posts
    93
    In textboxe's Properties set MaxLength=3
    Regards,
    Vit

  4. #4

    Thread Starter
    New Member
    Join Date
    May 2000
    Posts
    4

    Thanks for the help...

    I'd like to thanks everyone that answered my question.
    Thanks a lot
    Felipe

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width