Good afternoon,
I am trying to create a process whereby the user has to enter a user ID and the a password, but I want the password aspect to be displayed as astrix's as they enter in their password and not the actual characters that is being entered.
I am having trouble working out how to convert the password aspect characters to astrix's, what I have done is shown below, any assistance would be much appreciated.
BEGIN CODE
On Error GoTo Err_cmdOpenEmployeeDetailsForm_Click
Dim stDocName As String
Dim stLinkCriteria As String
Dim strUserID As String
Dim strPassword As String
Dim strPrompt1
Dim strPrompt2
Dim strTitle1
Dim strTitle2
strPrompt1 = "Enter Your User ID"
strTitle1 = "User ID"
strUserID = InputBox(strPrompt1, strTitle1)
strPrompt2 = "Enter Your Password"
strTitle2 = "Password"
strPassword = InputBox(strPrompt2, strTitle2)
If strUserID = "leej" Then
If strPassword = "24497195" Then
stDocName = "frmEmployees"
DoCmd.OpenForm stDocName, , , stLinkCriteria
Else
MsgBox "Your are not Authorised to access this"
End If
End If
Exit_cmdOpenEmployeeDetailsForm_Click:
Exit Sub
Err_cmdOpenEmployeeDetailsForm_Click:
MsgBox Err.Description
Resume Exit_cmdOpenEmployeeDetailsForm_Click
END CODE
I am trying to create a process whereby the user has to enter a user ID and the a password, but I want the password aspect to be displayed as astrix's as they enter in their password and not the actual characters that is being entered.
I am having trouble working out how to convert the password aspect characters to astrix's, what I have done is shown below, any assistance would be much appreciated.
BEGIN CODE
On Error GoTo Err_cmdOpenEmployeeDetailsForm_Click
Dim stDocName As String
Dim stLinkCriteria As String
Dim strUserID As String
Dim strPassword As String
Dim strPrompt1
Dim strPrompt2
Dim strTitle1
Dim strTitle2
strPrompt1 = "Enter Your User ID"
strTitle1 = "User ID"
strUserID = InputBox(strPrompt1, strTitle1)
strPrompt2 = "Enter Your Password"
strTitle2 = "Password"
strPassword = InputBox(strPrompt2, strTitle2)
If strUserID = "leej" Then
If strPassword = "24497195" Then
stDocName = "frmEmployees"
DoCmd.OpenForm stDocName, , , stLinkCriteria
Else
MsgBox "Your are not Authorised to access this"
End If
End If
Exit_cmdOpenEmployeeDetailsForm_Click:
Exit Sub
Err_cmdOpenEmployeeDetailsForm_Click:
MsgBox Err.Description
Resume Exit_cmdOpenEmployeeDetailsForm_Click
END CODE