mike60smart
Registered User.
- Local time
- Today, 17:31
- Joined
- Aug 6, 2017
- Messages
- 1,994
Hi Everyone
I am trying to use the Code shown in the following previous thread
When I run the Code I get the error shown Below.
Can anyone tell me where I am going wrong with this?
Any help appreciated.
I am trying to use the Code shown in the following previous thread
When I run the Code I get the error shown Below.
Code:
Private Sub cmdAdmin_Click()
On Error Resume Next
Dim pWord As String
pWord = InputBoxDK("Enter Administrative Password", "Password Required!")
If pWord = "" Then
MsgBox "Nothing Entered" & vbCrLf & vbLf & "Please Contact Your Local Administrator", vbCritical, "Security Logging"
GoTo ExitInput:
End If
If pWord = SCtb0825 Then 'password is correct (password of your choice)
DoCmd.OpenForm "Administration"
Else
MsgBox "Incorrect Password!" & vbCrLf & vbLf & "Please Contact Your Local Administrator", vbCritical, "Security Logging"
Exit Sub
End If
ExitInput:
End Sub
Can anyone tell me where I am going wrong with this?
Any help appreciated.