Hi there,
I have created a logon form for different level users to login to access database. After user enters username and password will open up the mainform. In the main form, there some command buttons. I would like to disable some buttons when guest user in read only group login. at the same time they should become enable when admin user login.
These are user info:
Username group
admin admin
guest read only
Here is my code but it does not work:
Private Sub Form_Load()
If Forms![frmLogon]![cboEmployee] = "guest" Then
Me.Command27.Enabled = False
Me.btproduction.Enabled = False
Else
Me.Command27.Enabled = True
Me.btproduction.Enabled = True
End If
End Sub
I would appreciate for any help
Cheers,
I have created a logon form for different level users to login to access database. After user enters username and password will open up the mainform. In the main form, there some command buttons. I would like to disable some buttons when guest user in read only group login. at the same time they should become enable when admin user login.
These are user info:
Username group
admin admin
guest read only
Here is my code but it does not work:
Private Sub Form_Load()
If Forms![frmLogon]![cboEmployee] = "guest" Then
Me.Command27.Enabled = False
Me.btproduction.Enabled = False
Else
Me.Command27.Enabled = True
Me.btproduction.Enabled = True
End If
End Sub
I would appreciate for any help
Cheers,