hardhitter06
Registered User.
- Local time
- Today, 03:50
- Joined
- Dec 21, 2006
- Messages
- 600
I have set a password with "on click", how do I show "*" when entering it
Hi All,
I created a password "josh" on one of my form buttons on click property. How do I encrpyt it (I hope im using the right terminology) when someone clicks the button and begins typing the password.
In other words, they click the button, the password input window displays, when typing in the password to go to the next form, how do i get it to show as "****" instead of "josh" when they input???
Here is my code:
Thank you.
Hi All,
I created a password "josh" on one of my form buttons on click property. How do I encrpyt it (I hope im using the right terminology) when someone clicks the button and begins typing the password.
In other words, they click the button, the password input window displays, when typing in the password to go to the next form, how do i get it to show as "****" instead of "josh" when they input???
Here is my code:
Code:
Private Sub Search_Click()
'Attached to On Click event of cmdOpenEmpForm
Dim strPasswd
Dim stDocName As String
Dim stLinkCriteria As String
stDocName = "frmAdminSearch"
strPasswd = InputBox("Enter Password", "Restricted Form")
'Check to see if there is any entry made to input box, or if
'cancel button is pressed. If no entry made then exit sub.
If strPasswd = "" Or strPasswd = Empty Then
MsgBox "No Input Provided", vbInformation, "Required Data"
Exit Sub
End If
'If correct password is entered open Employees form
'If incorrect password entered give message and exit sub
If strPasswd = "josh" Then
DoCmd.OpenForm stDocName, , , stLinkCriteria
Else
MsgBox "Sorry, you do not have access to this form", _
vbOKOnly, "Important Information"
Exit Sub
End If
End Sub
Thank you.