Hi Guys
I have a developed a password form so that everybody has to have a password in order to use the system. At the moment I have just put the validation that the password will only be greater than or equal to 8 characters. how can I add other validation like first capital letter,1 numeric and special character etc??
Any help will be much appreciated.
Thanks
I have a developed a password form so that everybody has to have a password in order to use the system. At the moment I have just put the validation that the password will only be greater than or equal to 8 characters. how can I add other validation like first capital letter,1 numeric and special character etc??
Code:
Private Sub txtPass_Exit(Cancel As Integer)
If Len(txtPass) < 8 Or IsNull(Me.txtPass) Then
Me.lblCross.Visible = True
Me.lblCross.Caption = "Passkey must be greater than or equal to 8 characters in length"
Me.txtPass.BorderColor = vbRed
Cancel = True
Any help will be much appreciated.
Thanks