Access User Level Security

Vaidhy

New member
Local time
Today, 15:30
Joined
Oct 4, 2010
Messages
2
I am new to Access VBA,please kindly help,
I have a database that has a Main form with 5 subforms in it.
I have a users table with name,password and permissions as 'All','Edit','Read','None'.
Basically i need to implement a user level security.
when he database is opened , a login page opens at startup containig Username and password .
Based on the user logged in,how do i enable/disable fields in the main form ?
 
On the forms onload event use either an If statement ore a Select Case statement.

Code:
If ULS = "LOW" Then
   Me.Control.Enabled = False
End If
 
On the forms onload event use either an If statement ore a Select Case statement.

Code:
If ULS = "LOW" Then
   Me.Control.Enabled = False
End If

Hi DCrake,
I can understand what ur implying,
But when the main form is loaded,how to imply to access tht which user is currently logged in ?
 
When the user logs in you need to store their access level somewhere, ie public variable or control on a hidden form and use this as your indicator.
 

Users who are viewing this thread

Back
Top Bottom