I created a form that have buttons that open other forms. I need to somehow password protect these other forms so only people granted permission can open the forms and input data. Can I do it with the DLookup function and tables? Thanks Chuck
Hi Chuck,
Are you using Access security? If you have to "log in" to Access then you could use something like this in the forms "On Open" event (in Visual Basic):
Private Sub Form_Open(Cancel As Integer)
On Error GoTo FOErr
If CurrentUser()<> "Chuck" Then
Cancel = True
MsgBox "Permission denied.", vbCritical, "Security Verification."
End If
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.