M
markeyjd2
Greetings,
Using Access 2003, my objective is to turn a list like this:
Asset ID | Parent Asset ID
1 | NULL
2 | 1
3 | 2
4 | 3
Etc...
Into a table like this:
Asset ID | Parent 1 | Parent 2 | Parent 3 | Etc...
1 | NULL | NULL | NULL |
2 | 1 | NULL | NULL |
3 | 2 | 1 | NULL |
4 | 3 | 2 | 1 |
Any suggestions how to achieve this objective are greatly appreciated.
A similar question was posted in the Access Database Queries Forum on
5/5/2008, titled: Implementing a Hierarchy in MS Access. According to the
responses this can only be done using VBA, which I am just learning, so a
little assistance with code writing would be greatly appreciated also.
Thank you.
Using Access 2003, my objective is to turn a list like this:
Asset ID | Parent Asset ID
1 | NULL
2 | 1
3 | 2
4 | 3
Etc...
Into a table like this:
Asset ID | Parent 1 | Parent 2 | Parent 3 | Etc...
1 | NULL | NULL | NULL |
2 | 1 | NULL | NULL |
3 | 2 | 1 | NULL |
4 | 3 | 2 | 1 |
Any suggestions how to achieve this objective are greatly appreciated.
A similar question was posted in the Access Database Queries Forum on
5/5/2008, titled: Implementing a Hierarchy in MS Access. According to the
responses this can only be done using VBA, which I am just learning, so a
little assistance with code writing would be greatly appreciated also.
Thank you.