platypus2004
Technical User
Ok, I have a table with the following structure:
Name ID ManagerID ManagerID2 ManagerID3
John 5 3 2 1
Pete 4 2 1
Mary 3 2 1
Beth 2 1
Barry 1 1
John reports to Mary.
Pete and Mary report to Beth
Beth reports to Barry
and Barry reports to himself as he is the boss.
I am trying to find a way to enter in "Beth" and get all the people that report under her to be returned.
Meaning, I enter Beth, and the reponse I get is a list containing John, Pete, and Mary.
Any help would be appreciated as I am at a loss.
Thanks
Name ID ManagerID ManagerID2 ManagerID3
John 5 3 2 1
Pete 4 2 1
Mary 3 2 1
Beth 2 1
Barry 1 1
John reports to Mary.
Pete and Mary report to Beth
Beth reports to Barry
and Barry reports to himself as he is the boss.
I am trying to find a way to enter in "Beth" and get all the people that report under her to be returned.
Meaning, I enter Beth, and the reponse I get is a list containing John, Pete, and Mary.
Any help would be appreciated as I am at a loss.
Thanks