ok. The database has a login form for users to get into the database. One they are in the database; they come to a switchboard with three buttons. Depending on their access level; which comes from the tblUsers which has the following fields: strName strPassword strAccess. The strAccess has user, sup or admin. I would like to have code behind the three buttons to have them access based on their level. I have the following code on the form load on each form the users have access to:
Code:
Private Sub Form_Load()
If strAccess <> "admin" Then
DoCmd.Close
MsgBox "You do not have sufficient security to make changes in this form"
End If
End Sub
The other buttons have the same code but with the different access levels; users, sup etc. I don't want them to have access to each other forms.
I hope this helps you help me
Thank you