Results 1 to 2 of 2

Thread: Case statement for validating textbox

  1. #1
    Join Date
    Jan 2004

    Case statement for validating textbox

    I have a SSN field. I want to display an error message upon submitting the page if the user has entered something like "111111111" or "222222222",etc...up to 9. Also I want to reject "123456789".

    Would the correct way be to write

    If txt_SSN.text = "111111111" Then
    app.msgbox "error message"
    ValidateCustomer = False
    Exit Function

    And how could I make this into a case statement for the others?

    Thanks for any help

  2. #2
    Join Date
    Nov 2002
    Auburn, AL

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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

Recent Articles