I have made function for disable the controls on the forms of all the project. The controls should be disabled in the general user and should be enabled in the admin user.
'The function which i made for the general User is:
User Sub() with Form1 .command1.enabled = False .command2.enabled = False End With End Sub 'The Function witch i made for admin user is: Admin Sub() with Form1 .command1.enabled = True .command2.enabled = True End With End Sub 'I have made a login form and call tthese functions on this form the Coding is: if text1.text = "" and text.text2 = "" then Call user() Form1.Show End If if text1.text = "Admin" and Text2.text = "Sales" then Call admin() Form1.Show End If
Problem is that the controls on the forms for general user are disabled only one time when i exit that form and populate it again with out exiting from the system
it enables all the controls in the general user but it should be disabled in the general.
Please help me to resolve this problem
Thanks in Advance.
This post has been edited by JackOfAllTrades: 17 May 2010 - 07:23 AM
Reason for edit:: Added code tags.