Read Only Form

tt1611

Registered User.
Local time
Today, 16:30
Joined
Jul 17, 2009
Messages
132
Does anyone know of a way to load a form Read-Only based on a condition, Say for example if user is of type "User" then load form readonly else load form normally.

I know about the readonly property on the form property but that locks up the whole form regardless of who's viewing it and not on a per user basis
 
All you have to do is to use code to figure out who it is and then adjust accordingly. For example:

Code:
Private Sub Form_Load()
   Select Case Environ("username")
   Case "billr", "samt", "ellenv"
       Me.AllowEdits = True
   Case Else
       Me.AllowEdits = False
   End Select
End Sub

But I would actually use a table to tell who has what but this is just a quick example.
 
Hey Boblarson.
Thanks for that. I had just seen the allowedits property in code. I have used that and setup all access levels accordingly

Thank you very much for your help..
 

Users who are viewing this thread

Back
Top Bottom