S
Spyder
Hi all,
I know this topic has been beaten to death now but I just don't get it
and could really use some help.
We have a access database that is used for bills of materials (parent
child relationship). There is a table for the Bill's and a table for
the items themself.
So you have a part that consists of subparts which consists of
subsubparts and so on (the depth of the levels is not known).
So, the table that I think I would need to use for the query is the
bill of material table called ITEMBOMS. Its strucutre is simple:
ParentID
ChildID
Qty
Now, here is what I am trying to do.
1. Create a query that shows all the children, sub children ect for
any given parent (travel down the tree).
2. Create a query that shows a childs immediate parent (up one level)
and also finds the uppermost parent (the last parent without).
Query 1 will simply give me a indented bill of material.
Query 2 will tell me how many of any given child is used for any given
parent assembly and the name of the topmost products they are used on.
I hope this makes sense. Essentially I need to create a bill of
material and be able to find out where an item is used within the
bill.
Thanks,
BRian
I know this topic has been beaten to death now but I just don't get it
and could really use some help.
We have a access database that is used for bills of materials (parent
child relationship). There is a table for the Bill's and a table for
the items themself.
So you have a part that consists of subparts which consists of
subsubparts and so on (the depth of the levels is not known).
So, the table that I think I would need to use for the query is the
bill of material table called ITEMBOMS. Its strucutre is simple:
ParentID
ChildID
Qty
Now, here is what I am trying to do.
1. Create a query that shows all the children, sub children ect for
any given parent (travel down the tree).
2. Create a query that shows a childs immediate parent (up one level)
and also finds the uppermost parent (the last parent without).
Query 1 will simply give me a indented bill of material.
Query 2 will tell me how many of any given child is used for any given
parent assembly and the name of the topmost products they are used on.
I hope this makes sense. Essentially I need to create a bill of
material and be able to find out where an item is used within the
bill.
Thanks,
BRian