Hello,
I kindly ask for your support because I have to achieve something that seems to be simple but I just can't figure it out how to do it.
Mainly, I have two columns. The first one contains some parent codes, the second one contains some child codes which can consequently become parent codes for other child codes. And so on.
Having this in mind, I want to create a hierarchy like the one from the below example. The example file was created manually with a minimum number of records but the final database can be way bigger.
<colgroup><col style="width:48pt" span="9" width="64"> </colgroup><tbody>
</tbody>
Thank you in advance for your support!
A.B.
Also posted here:
[url]http://www.vbaexpress.com/forum/showthread.php?57247-Build-parent-child-hierarchy
Build parent/child hierarchy
[/URL]
I kindly ask for your support because I have to achieve something that seems to be simple but I just can't figure it out how to do it.
Mainly, I have two columns. The first one contains some parent codes, the second one contains some child codes which can consequently become parent codes for other child codes. And so on.
Having this in mind, I want to create a hierarchy like the one from the below example. The example file was created manually with a minimum number of records but the final database can be way bigger.
Parent | Child | |||||||
AB00000 | AB00001 | AB00000 | AB00001 | AB00002 | AB00005 | AB00009 | AB00010 | |
AB00001 | AB00002 | AB00006 | ||||||
AB00001 | AB00003 | AB00005 | ||||||
AB00001 | AB00004 | AB00007 | ||||||
AB00002 | AB00005 | AB00005 | ||||||
AB00002 | AB00006 | AB00003 | AB00007 | |||||
AB00002 | AB00005 | AB00004 | AB00008 | |||||
AB00002 | AB00007 | |||||||
AB00002 | AB00005 | |||||||
AB00003 | AB00007 | |||||||
AB00004 | AB00008 | |||||||
AB00005 | AB00009 | |||||||
AB00009 | AB00010 |
<colgroup><col style="width:48pt" span="9" width="64"> </colgroup><tbody>
</tbody>
Thank you in advance for your support!
A.B.
Also posted here:
[url]http://www.vbaexpress.com/forum/showthread.php?57247-Build-parent-child-hierarchy
Build parent/child hierarchy
[/URL]