Hello All,
Fairly new to Access, so please forgive me if my terminology is slightly off. As part of a database I am creating (XP, Access 2007), I have set up two tables: one contains employee information, while the other contains position information. The employee table holds fields including first name, last name, email, etc. and uses an Employee ID as its primary key. The position table holds information including department, salary, title, etc. and uses a Position ID as its primary key.
The position table also contains three fields on employees relevant to the position: Holder (the actual employee filling the position), Supervisor (The position's supervisor), and Previous Holder (The employee who held the position last). The first of these fields is required, while the latter two are not. The problem I have, however, is that all three of these fields in the Position table reference the same Employee Table, as they all use Employee ID as their foreign key (in addition, the same employee can fill different fields in different records; ex. a holder of one position may be a supervisor of another).
When I build queries around these tables, I have to continually rebuild the relationship structure by creating three iterations of the employee table in each query and redeclaring the proper relationship between them and Position Table. Is there a way I might set this relationship in the relationships tab so that Access recognizes it when I create new queries? Thank you!
Fairly new to Access, so please forgive me if my terminology is slightly off. As part of a database I am creating (XP, Access 2007), I have set up two tables: one contains employee information, while the other contains position information. The employee table holds fields including first name, last name, email, etc. and uses an Employee ID as its primary key. The position table holds information including department, salary, title, etc. and uses a Position ID as its primary key.
The position table also contains three fields on employees relevant to the position: Holder (the actual employee filling the position), Supervisor (The position's supervisor), and Previous Holder (The employee who held the position last). The first of these fields is required, while the latter two are not. The problem I have, however, is that all three of these fields in the Position table reference the same Employee Table, as they all use Employee ID as their foreign key (in addition, the same employee can fill different fields in different records; ex. a holder of one position may be a supervisor of another).
When I build queries around these tables, I have to continually rebuild the relationship structure by creating three iterations of the employee table in each query and redeclaring the proper relationship between them and Position Table. Is there a way I might set this relationship in the relationships tab so that Access recognizes it when I create new queries? Thank you!