I have data (Bill of Materials) in a table, with this basic structure:
Parent Child Level
- A 1
A B 2
A C 2
A D 2
B E 3
B F 3
B G 3
C J 3
C K 3
E H 4
F I 4
K L 4
I want to be able to output this in a tree format, eg:
A
|_______
B
|_______
| E
| |_______
| | H
| |
| F
| |_______
| | I
| |
| G
|
|
C_______
| J
| |
| |
| K
| |_______
| L
|
D
[This tree's not coming out like it should, in the post, but you get the point...]
How can I implement this in Access? I need to display this on a form and/or report.
(Should I use a data structure? which? There is no set number of branches or nodes -- there can be many 'Levels')
Thanks in advance
Parent Child Level
- A 1
A B 2
A C 2
A D 2
B E 3
B F 3
B G 3
C J 3
C K 3
E H 4
F I 4
K L 4
I want to be able to output this in a tree format, eg:
A
|_______
B
|_______
| E
| |_______
| | H
| |
| F
| |_______
| | I
| |
| G
|
|
C_______
| J
| |
| |
| K
| |_______
| L
|
D
[This tree's not coming out like it should, in the post, but you get the point...]
How can I implement this in Access? I need to display this on a form and/or report.
(Should I use a data structure? which? There is no set number of branches or nodes -- there can be many 'Levels')
Thanks in advance
Last edited: