Example.
user/login john belongs to department 102.
user/login paul belongs to department 202
(the login is the same as the overall database login)
Two tables in database.
Employee Table has two fields : user , department (**** the user here is intended to be the same a the access login)
Salary table has 3 fields : department, name, salary.
I want to create a single form so that when john logs in he can ONLY see the salary of those in his department (102) etc.
My solution is to create a form where the department number defaults to the department in the employee table. I.e. if the user logs in as John then the department will default to 102. This field is then not editable.
I can't figure out the query/macro? that I need to achieve what I described in the previous paragraph. How do I do this??
user/login john belongs to department 102.
user/login paul belongs to department 202
(the login is the same as the overall database login)
Two tables in database.
Employee Table has two fields : user , department (**** the user here is intended to be the same a the access login)
Salary table has 3 fields : department, name, salary.
I want to create a single form so that when john logs in he can ONLY see the salary of those in his department (102) etc.
My solution is to create a form where the department number defaults to the department in the employee table. I.e. if the user logs in as John then the department will default to 102. This field is then not editable.
I can't figure out the query/macro? that I need to achieve what I described in the previous paragraph. How do I do this??
Last edited: