Verify Upper/Lower Case in a string

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I need to verify that a signon password has atleast 1 Upper Case and 1 Lower Case alpha characters in the 8 to 12 character string. The only solution I see is to use the Asc function. If so where can I get a list of character codes? Is this the only solution, or is there a better way

Thank you for any assitance

Regards
Bill
 
Bill
You can get a list of the ascii codes in the access/vba help file ( open help from a code module) and then type character in the keyowrds box on the index tab. You what look at "character set (0-127)" and "character set( 128-255)" to see all of them. You can also find this on the internet at, http://www.asciitable.com/ .

to avoid using the asc codes you might go though the string and take each character one at a time and compare each one to the ucase and lcase functions to see if they are the smae and then you will know if it was upper case of not. You would do someting like ucase(tmpChar) = tmpChar to see if uppercase and lcase(tmpChar)=tmpChar to see if lowe

Blain

----- Bill Hansen wrote: ----

I need to verify that a signon password has atleast 1 Upper Case and 1 Lower Case alpha characters in the 8 to 12 character string. The only solution I see is to use the Asc function. If so where can I get a list of character codes? Is this the only solution, or is there a better way

Thank you for any assitance

Regards
Bill
 
Back
Top