Hi There,
Can someone help me with checking the characters of a password entered by the user.
I need to check there is Uppercase characters, Lowercase Characters, Special Characters etc.
I have tried the code below but it returns that all characters are lowercase when I have entered some uppercase characters.
The Code I have used:
Dim PasswordLength As Integer
Dim AtChar As Byte
Dim offset As Long
Dim TempAlpha As String
PasswordLength = Len(Me.Txt_Password)
While PasswordLength <> AtChar ' Test value of Counter.
AtChar = AtChar + 1 ' Increment Counter.
TempAlpha = UCase(Mid(Me.Txt_Password, AtChar, 1))
If UCase(Mid(Me.Txt_Password, AtChar, 1)) = True Then
MsgBox ("Is UpperCase")
Else
MsgBox ("Is LowerCase")
End If
Wend ' End While loop.
I would appreciate any help you can give.
Best Regards,