hi my friends
i have form and some bottom i take it not allowed for some users i use case for that
please see the Attachments where the problems in false enabled the command206 and 236 the pic no1 take it gray color and pic2 take bad color not like it
and by take true command its normal good
i wont all after false take me gray uncolor
please help me where is the problems
i have form and some bottom i take it not allowed for some users i use case for that
Code:
Sub Security(userLevel As Integer)
Select Case userLevel
Case 1, 3, 5 'view and edit
Me.comm206.Enabled = True
Me.comm236.Enabled = True
Case 2, 4 'view only
Me.comm206.Enabled = false
Me.comm236.Enabled = false
End Select
End Sub
please see the Attachments where the problems in false enabled the command206 and 236 the pic no1 take it gray color and pic2 take bad color not like it
and by take true command its normal good
i wont all after false take me gray uncolor
please help me where is the problems