This self referring table can be used in a query where you place the table as many times as you have levels (+1) and join the reportsToID to the staffID for all subsequent tables.
When filtering the first table for an empty reportsToID the start will be with the "roots".
Did you try this ?
The code solution would be to create a so-called recursive procedure taht's calling itself when a new "branch" is found.
Nic;o)
Main Topics
Browse All Topics





by: jimhornPosted on 2006-01-23 at 11:05:20ID: 15769329
AFAIK Access and VB do not have an Organizational Chart wizard that would connect to a data source and generate an Org Chart, as you have it displayed.
Perhaps Visio has this?
Hope this helps.
-Jim