My problems will continue.
I have login form which will be loaded in the start.
Form is maded using Login table which contains following fields. Employee id, username, password and user status.
In the login form is combobox which is used to select the employee and the password field. If username and password is correct then will be loaded mainform if not then it inform that the password or username is incorrect.
This work fine but, problem is that how i gonna use this login form to define user rights.
I mean user rights that when i login in admin then all buttons in the mainform is use but when user is employee then mainform some buttons are disabled.
I have login form which will be loaded in the start.
Form is maded using Login table which contains following fields. Employee id, username, password and user status.
In the login form is combobox which is used to select the employee and the password field. If username and password is correct then will be loaded mainform if not then it inform that the password or username is incorrect.
This work fine but, problem is that how i gonna use this login form to define user rights.
I mean user rights that when i login in admin then all buttons in the mainform is use but when user is employee then mainform some buttons are disabled.