Re: Is alpha Numeric
From: Graham Mandeno (Graham.Mandeno_at_nomail.please)
Date: 04/16/04
- Next message: SugarBear: "Re: Unbound Text"
- Previous message: nico: "RE: unable to goto new record"
- In reply to: Angel_G: "Is alpha Numeric"
- Next in thread: Angel_G: "Re: Is alpha Numeric"
- Reply: Angel_G: "Re: Is alpha Numeric"
- Messages sorted by: [ date ] [ thread ]
Date: Fri, 16 Apr 2004 12:35:38 +1200
Hi Angel
If Me!UserPassword Like "*[A-Z]* And Me!Userpassword Like "*#*" Then
' password contains both numbers and letters
Else
' invalid
End If
If you want to also check that the password contains *only* alphanumeric
characters, then add a third test:
... And Not (Me!UserPassword Like "*[!A-Z0-9]*")
-- Good Luck! Graham Mandeno [Access MVP] Auckland, New Zealand "Angel_G" <nomailplease@sorry.com> wrote in message news:%239zSZUzIEHA.2544@TK2MSFTNGP10.phx.gbl... > How can I tell if a field on a form (UserPassword) contains an Alpha Numeric > value. I want to make sure the field contains both, numbers and letters. > Can anyone help me with the right code? > >
- Next message: SugarBear: "Re: Unbound Text"
- Previous message: nico: "RE: unable to goto new record"
- In reply to: Angel_G: "Is alpha Numeric"
- Next in thread: Angel_G: "Re: Is alpha Numeric"
- Reply: Angel_G: "Re: Is alpha Numeric"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|