Results 1 to 2 of 2

Thread: Validation Checking

  1. #1

    Thread Starter
    New Member
    Join Date
    Mar 2000
    Posts
    10
    Hello,

    I am desperately trying to get a validation check working to validate text that is entered into a text box, before being passed into a database.

    The problem is I have to check that a code being entered into the text box comprises of the following:

    three letters then
    three numbers then
    one letter then
    one number

    (ie) aaa222b3

    I have tried various if statements etc.. to get around this and I would be grateful if anyone out there would know of any code that would enable this validation check...

    Thanks,
    Andrew

  2. #2
    Addicted Member
    Join Date
    Oct 1999
    Posts
    253
    You can write a loop to check the TextBox's value character by character and do the appropriate checking for every character by using the IsNumeric function (for numbers) or the Chr function (for letters).

    Good Luck!!!

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