Hi everyone, I have tried researching this and watching videos for a week now, but my brain hasn't been able figure this out to save me. Any help is appreciated. I have a simple program that will be designed for keeping up with documentation on employees (tardiness, verbal warnings, recognition, etc...) I'm trying to figure out the permissions, so that each user can only see the employees under their own command and not other employees.
This program only has one primary table that pulls from our main Record Maintenance System (RMS) a vendor program. This holds the employee table (dbo_emmain). Each employee record has 4 different fields (Division, Unit, Shift and Rank).
The main form "frmNavigation" is based on a user query for the individual that is signed in. In my train of thought, if the particular permission, tblUsers, is checked and matches the subform employee table record (dbo_emmain), then the record should be visible else if not then filtered out.
Please see the two attachments (code and form). My subform (employee listing records) is based on a query to show only active employees and not terminated or retired employees. The query also sorts. I don't want to base the subform on a table as that would be even more vba coding on top of what I'm trying to figure out.
I want to be able to filter the subform records (on right) if they match the table permissions (on left). All of the employee details will be hidden under the subform if I can figure it out. I don't know if this make sense or not. Thank you for any help.
This program only has one primary table that pulls from our main Record Maintenance System (RMS) a vendor program. This holds the employee table (dbo_emmain). Each employee record has 4 different fields (Division, Unit, Shift and Rank).
The main form "frmNavigation" is based on a user query for the individual that is signed in. In my train of thought, if the particular permission, tblUsers, is checked and matches the subform employee table record (dbo_emmain), then the record should be visible else if not then filtered out.
Please see the two attachments (code and form). My subform (employee listing records) is based on a query to show only active employees and not terminated or retired employees. The query also sorts. I don't want to base the subform on a table as that would be even more vba coding on top of what I'm trying to figure out.
I want to be able to filter the subform records (on right) if they match the table permissions (on left). All of the employee details will be hidden under the subform if I can figure it out. I don't know if this make sense or not. Thank you for any help.