S
Sandy
Hi
I have the following (from this newsgroup) which acts as a password box :-
Private Sub Administration_Click()
Dim strPasswd
strPasswd = InputBox("Enter Password", "Restricted Form")
If strPasswd = "" Or strPasswd = Empty Then
MsgBox "No Input Provided", vbInformation, "Required Data"
Exit Sub
End If
If strPasswd = "xxxxx" Then
On Error GoTo Err_Administration_Click
Dim stDocName As String
Dim stLinkCriteria As String
stDocName = "Administration"
DoCmd.OpenForm stDocName, , , stLinkCriteria
DoCmd.Close acForm, "Navigation"
Exit_Administration_Click:
Exit Sub
Err_Administration_Click:
MsgBox Err.Description
Resume Exit_Administration_Click
Else
MsgBox "Sorry, you do not have access to this form", _
vbOKOnly, "Important Information"
Exit Sub
End If
End Sub
My question:
Is it possible to have asterisks showing in the input box rather than the
actual letters being typed?
Thanks
Sandy
I have the following (from this newsgroup) which acts as a password box :-
Private Sub Administration_Click()
Dim strPasswd
strPasswd = InputBox("Enter Password", "Restricted Form")
If strPasswd = "" Or strPasswd = Empty Then
MsgBox "No Input Provided", vbInformation, "Required Data"
Exit Sub
End If
If strPasswd = "xxxxx" Then
On Error GoTo Err_Administration_Click
Dim stDocName As String
Dim stLinkCriteria As String
stDocName = "Administration"
DoCmd.OpenForm stDocName, , , stLinkCriteria
DoCmd.Close acForm, "Navigation"
Exit_Administration_Click:
Exit Sub
Err_Administration_Click:
MsgBox Err.Description
Resume Exit_Administration_Click
Else
MsgBox "Sorry, you do not have access to this form", _
vbOKOnly, "Important Information"
Exit Sub
End If
End Sub
My question:
Is it possible to have asterisks showing in the input box rather than the
actual letters being typed?
Thanks
Sandy