A
Alex
I have a table with three columns:
ID Part NHL
1 30 20
2 40 30
3 50 30
4 60 20
5 20 10
I need a query that will return "children records". For example; for ID 1,
the query needs to return ID 2, 3 & 5. ID 2 & 3 are direct children of ID 1
and ID 5 is like a grandchild since Part 20 is a child of Part 30. I've
tried a union query and a self-join query, but not having any luck. If need
be, I'm not opposed to using code to accomplish this task. Thank you very
much.
Alex
ID Part NHL
1 30 20
2 40 30
3 50 30
4 60 20
5 20 10
I need a query that will return "children records". For example; for ID 1,
the query needs to return ID 2, 3 & 5. ID 2 & 3 are direct children of ID 1
and ID 5 is like a grandchild since Part 20 is a child of Part 30. I've
tried a union query and a self-join query, but not having any luck. If need
be, I'm not opposed to using code to accomplish this task. Thank you very
much.
Alex