I am creating an HR (human resources) database that will be used by both the HR department and all supervisors. HR wants to limit what supervisors can see—they want them to see, add performance evaluations, do consultations, etc. only for those employees who report to them. BUT…all of HR should be able to see all records and some managers shouldn’t be restricted either (managers essentially just have "children" of supervisors).
On the main employee table td_employee there is a [supervisor] field on each employee record—each employee record is unique based on the [employee_number] field. There are many select queries throughout the database that allow lookup fields on the forms based on the [employee_number] field.
I have created a login form f_login and table td_security for setting up usernames and passwords for the database. The f_login form has two controls: cboUsername and txtPassword to capture the login info—the command button on the form executes the login script on click. The login I have works wonderfully.
On the td_security table I added a field called [access_level] that differentiates users from one another--values are H, M and S: H & M should essentially see everything but H will have a different main navigation menu. S level will only see records for those employees who they are attached as the [supervisor] for.
However, I have searched and searched and cannot find anything that will help me (I am a novice programmer at best) to limit the records that a supervisor can see across the entire database based on their login. Help?
FYI - we are using Access 2007.
On the main employee table td_employee there is a [supervisor] field on each employee record—each employee record is unique based on the [employee_number] field. There are many select queries throughout the database that allow lookup fields on the forms based on the [employee_number] field.
I have created a login form f_login and table td_security for setting up usernames and passwords for the database. The f_login form has two controls: cboUsername and txtPassword to capture the login info—the command button on the form executes the login script on click. The login I have works wonderfully.
On the td_security table I added a field called [access_level] that differentiates users from one another--values are H, M and S: H & M should essentially see everything but H will have a different main navigation menu. S level will only see records for those employees who they are attached as the [supervisor] for.
However, I have searched and searched and cannot find anything that will help me (I am a novice programmer at best) to limit the records that a supervisor can see across the entire database based on their login. Help?
FYI - we are using Access 2007.