Results 1 to 2 of 2

Thread: help wih validate

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Oct 2000
    Location
    Panama
    Posts
    17

    Wink

    someone can tell me what i can do for validate a textbox when you only let recorder in the databasee the number 1,2,3 and if you introduce another information,its send a error message
    thanks for all
    farizza reyes

  2. #2
    Frenzied Member
    Join Date
    Aug 2000
    Posts
    1,539
    farizza
    salam.....
    in the textbox keypress event
    do it like this
    Code:
        'making sure only numbers are entered in this field
        If Not IsNumeric(Chr(KeyAscii)) And KeyAscii <> _
        vbKeyBack Then KeyAscii = 0
    that will let you enter 0, 1-9,
    and lets you use backspace as well

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