Re: Is alpha Numeric
From: Angel_G (nomailplease_at_sorry.com)
Date: 04/16/04
- Next message: chrisg: "Re: Simple math"
- Previous message: Jon: "setting validation rules"
- In reply to: Graham Mandeno: "Re: Is alpha Numeric"
- Messages sorted by: [ date ] [ thread ]
Date: Fri, 16 Apr 2004 12:50:24 -0700
Thank you.
"Graham Mandeno" <Graham.Mandeno@nomail.please> wrote in message
news:eWUY9q0IEHA.3572@TK2MSFTNGP10.phx.gbl...
> 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: chrisg: "Re: Simple math"
- Previous message: Jon: "setting validation rules"
- In reply to: Graham Mandeno: "Re: Is alpha Numeric"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|