Link to home
Start Free TrialLog in
Avatar of terpsichore
terpsichore

asked on

password validation in Access

Dear experts,
I need to validate that a password meets the following criteria - any help is appreciated!
=> Must be at least 8 characters, and include at least one of the following: numeric character, uppercase, non-alpha or punctuation (where not limited by the system)

Thank you -
ASKER CERTIFIED SOLUTION
Avatar of Rey Obrero (Capricorn1)
Rey Obrero (Capricorn1)
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of terpsichore
terpsichore

ASKER

works perfectly - thank you.
out of curiosity - I was choking on this line using Regexp, any ideas what's wrong with this?
   If Len(TestPw) < 8 Or RegExpFind(TestPw, "[^a-zA-Z0-9\!\@\#\$\%\^\&\*\_\+]", 1, True) <> "" Or RegExpFind(TestPw, "\d", 1) = "" Or RegExpFind(TestPw, "[A-Z]", 1, True) = "" Or RegExpFind(TestPw, "\!\@\#\$\%\^\&\*\_\+", 1, True) = "" Then
'        checkPwd = "Please fix: Password must be at least 8 characters, and include at least one of the following: numeric character, uppercase, and a non-alphanumeric character."

RegExpFind is a function by Patrick Mathews you may be familiar with... the fourth parameter = case-sensitive
I put this code in, but it did not do anything? I must have done something wrong