R
riaang
Guest
Hi,
I use the following event to password protect my report but have a problem with the line in red.
Private Sub Report_Open(Cancel As Integer)
If InputBox("Enter Password", "Password Required") <> "4062" Then
MsgBox "Access denied"
DoCmd.Close acReport, Me.Name
End If
End Sub
Can anybody help me to fix the problem.
Regards
Riaan
PS. Is it possible to password protect a specific switchboard item and not the whole switchboard.
I use the following event to password protect my report but have a problem with the line in red.
Private Sub Report_Open(Cancel As Integer)
If InputBox("Enter Password", "Password Required") <> "4062" Then
MsgBox "Access denied"
DoCmd.Close acReport, Me.Name
End If
End Sub
Can anybody help me to fix the problem.
Regards
Riaan
PS. Is it possible to password protect a specific switchboard item and not the whole switchboard.