query assembly components

message from =?Utf-8?B?TWlrZTI3?= on 18 May 2004
I have a parts database which relates bottom level parts to master assemblies as well as to every subassembly up the pyramid including the master assembly at the top. This allows me to find correct part numbers by searching, for example, the name of an assembly and the common name of a part. All this linking is very labor intensive because each bottom level part has to be linked to so many assemblies. I want to be able to link the bottom level part only to the first subassembly that it belongs to, then link that sub assembly to the next subassembly up the pyramid until the last sub assembly is linked to the top master assembly. The relationships in the database are set up to link this way, but I can't picture how to set up a query if there will be no direct link from the bottom level part to the top assembly. Can Access do this & if so, what is the correct method?
Thanks
 
Allen Browne replied to =?Utf-8?B?TWlrZTI3?= on 19 May 2004
The structure you describe is usually called a "Bill of Materials", and it
is one of the things the SQL language does not handle easily.

http://www.mvps.org/access/modules/mdl0027.htm

If you need something more complex, see:
http://www.intelligententerprise.com/001020/celko.shtml
http://www.devx.com/premier/mgznarch/vbpj/2001/07jul01/sqlpro0107/rein0107/rein-1.asp
http://www.dbmsmag.com/9603d06.html
http://www.dbmsmag.com/9604d06.html
http://www.dbmsmag.com/9605d06.html
http://www.dbmsmag.com/9606d06.html
 

Archived message: query assembly components (Microsoft Access Error Message)