databasedonr
Registered User.
- Local time
- Yesterday, 22:24
- Joined
- Feb 13, 2003
- Messages
- 163
Greetings All,
I have an employee table that goes like this:
tblEmployee
EmpID
Surname
GivenName
PositionNo
ReportsTo
The EmpID is a unique identifier; the position number (PositionNo) uniquely identifies a position, which an employee holds. With maternity leaves (and leave of other kinds), it is possible to have two employees have the same Position Number, or, if the position is vacant, I have a position with no one in it.
In all cases, a position reports to another position, which is reflected in the ReportsTo field.
So, in the database, I have a position 12345 that reports to position 98765. This reflects the manager -- so position 98765 is the manager of position 12345.
What I want to do on a form is display the GivenName and Surname of the Manager on the employees record. In my table, I have the ReportsTo Field containing the PositionNo data.
I hope this is clear... For example, my position number is 30754 and I report to 37041, but I want to see my manager's name on the form when I open it, not the number.
Thanks in advance -- I am convinced that this is simple, but so am I, as I can't figure it out.
I have an employee table that goes like this:
tblEmployee
EmpID
Surname
GivenName
PositionNo
ReportsTo
The EmpID is a unique identifier; the position number (PositionNo) uniquely identifies a position, which an employee holds. With maternity leaves (and leave of other kinds), it is possible to have two employees have the same Position Number, or, if the position is vacant, I have a position with no one in it.
In all cases, a position reports to another position, which is reflected in the ReportsTo field.
So, in the database, I have a position 12345 that reports to position 98765. This reflects the manager -- so position 98765 is the manager of position 12345.
What I want to do on a form is display the GivenName and Surname of the Manager on the employees record. In my table, I have the ReportsTo Field containing the PositionNo data.
I hope this is clear... For example, my position number is 30754 and I report to 37041, but I want to see my manager's name on the form when I open it, not the number.
Thanks in advance -- I am convinced that this is simple, but so am I, as I can't figure it out.