Self Joins (1 Viewer)

chergh

blah
Local time
Today, 04:12
Joined
Jun 15, 2004
Messages
1,414
I've got a table with a self join which represents a tree structure that can have variable depth.

I want to get a spreadsheet view of this for project review meetings. I can do a bunch of nested queries until I get all the branches but i would like something a little more dynamic, i.e. something that will automatically show the spreadsheet view of all branches no matter the depth of the tree.

So anyone got any suggestions on how to handle this?
 

Rabbie

Super Moderator
Local time
Today, 04:12
Joined
Jul 10, 2007
Messages
5,906
This link should help with self joins in Access
 
Local time
Yesterday, 22:12
Joined
Mar 4, 2008
Messages
3,856
I didn't think to ask, do you need the output in a hierarchical format (i.e. manager listed, all his direct reports next, interspersed with their direct reports, etc., then the next manager, etc.)?

If not, the link Rabbie supplied is the answer.
 

Users who are viewing this thread

Top Bottom