themurph2000
Fat, drunk, and stupid
- Local time
- Today, 08:25
- Joined
- Sep 24, 2007
- Messages
- 181
I'm sure this has been covered before, but I'm having a tough time with it.
I've created a database (with a lot of help from people online), that has a hidden form storing the UserID and Department of a person on a "hidden" form so this data can be used to filter out records specifically entitled to them. (In other words, they can only see their own employees). However, I erred in not realizing that some of their employees are bosses for other employees. Thus, a user would not only have to see the records of people that work for them but also of anybody that works for their people.
i.e. If Joan is the boss for Mike and Mary, and Mike has Moe, Larry, and Curly working for him, Joan would have to see Moe, Larry, and Curly's information, as well as Mike and Mary's, but Mary shouldn't see Moe, Larry, and Curly's information.
Right now, all I have is the list of people and their direct managers. (can be converted to ID's, obviously, if necessary.) As far as I can tell from the raw data, I would need at least 4 levels, the 4th being employees with no access (just regular workers, no bosses)
Any suggestions?
I've created a database (with a lot of help from people online), that has a hidden form storing the UserID and Department of a person on a "hidden" form so this data can be used to filter out records specifically entitled to them. (In other words, they can only see their own employees). However, I erred in not realizing that some of their employees are bosses for other employees. Thus, a user would not only have to see the records of people that work for them but also of anybody that works for their people.
i.e. If Joan is the boss for Mike and Mary, and Mike has Moe, Larry, and Curly working for him, Joan would have to see Moe, Larry, and Curly's information, as well as Mike and Mary's, but Mary shouldn't see Moe, Larry, and Curly's information.
Right now, all I have is the list of people and their direct managers. (can be converted to ID's, obviously, if necessary.) As far as I can tell from the raw data, I would need at least 4 levels, the 4th being employees with no access (just regular workers, no bosses)
Any suggestions?