J
James
Hello I have the following Code and I would like to call
it to a number for forms:
-----------------------------------------------------------
Dim ctrl As Control
For Each ctrl In Me.Controls
If usrLevel = 3 Then
If ctrl.ControlType = acTextBox Then
ctrl.Locked = True
Else
If ctrl.ControlType = acTextBox Then
ctrl.Locked = True
End If
End If
End If
Next ctrl
-----------------------------------------------------------
How could I achieve this? Is there an easy way of just
getting a module to run on startup or something and it
does what I am asking above?
So could I get the module to run on startup that looks at
all the open forms and the uerlevel of the person logged
in and apply the above security?
Many Thanks
James
it to a number for forms:
-----------------------------------------------------------
Dim ctrl As Control
For Each ctrl In Me.Controls
If usrLevel = 3 Then
If ctrl.ControlType = acTextBox Then
ctrl.Locked = True
Else
If ctrl.ControlType = acTextBox Then
ctrl.Locked = True
End If
End If
End If
Next ctrl
-----------------------------------------------------------
How could I achieve this? Is there an easy way of just
getting a module to run on startup or something and it
does what I am asking above?
So could I get the module to run on startup that looks at
all the open forms and the uerlevel of the person logged
in and apply the above security?
Many Thanks
James