mloucel
Member
- Local time
- Yesterday, 18:05
- Joined
- Aug 5, 2020
- Messages
- 313
Hello All..
I have a Form called frmLoginUpdate which is linked to my tblLogin, is a Continuous Forms, displays the LoginID, UserName, Password(hidden) AccessLevel and OfficeLocation, Active,
then the Field [SPwd] (On the form is called ShowPassword, but the Control Source is SPwd [field on the table])
a check where if NOT checked then the password is hidden and when the user CLICK or enable the check, Displays the Password ( SEE ATTACHMENT PIC),
My Issue is that when I click the check mark ALL passwords are displayed (UNMASKED) not just the one that it is located in that line, I don't know how to modify the code so that it ONLY unmask the line I'm in and not all of them.
Here is my code:
Thanks for any help you can provide.
I have a Form called frmLoginUpdate which is linked to my tblLogin, is a Continuous Forms, displays the LoginID, UserName, Password(hidden) AccessLevel and OfficeLocation, Active,
then the Field [SPwd] (On the form is called ShowPassword, but the Control Source is SPwd [field on the table])
a check where if NOT checked then the password is hidden and when the user CLICK or enable the check, Displays the Password ( SEE ATTACHMENT PIC),
My Issue is that when I click the check mark ALL passwords are displayed (UNMASKED) not just the one that it is located in that line, I don't know how to modify the code so that it ONLY unmask the line I'm in and not all of them.
Here is my code:
Code:
Private Sub ShowPassword_Click()
'ShowPassword is the Name of the check box
'Check Box Control Source is SPwd from the Table
'SP is the LABEL Name
If ShowPassword = True Then
Password.InputMask = ""
SP.Caption = "Hide Password"
Else
Password.InputMask = "Password"
SP.Caption = "Show Password"
End If
End Sub
Thanks for any help you can provide.