J
Jason W. Martin
A record contains PARTID and COMPONENTID fields. There could be multiple
records per part. For example:
PARTID COMPONENTID
030.11A 030.090
030.11A 030.091
030.11A 030.09A
Issue - components are records within the same table and may contain
multiple sub-components themselves. It's possible there could be several
levels.
We need to select all records for a specific part and all records for all
components and all their parts.
For example, given the PARTID above, we need a query to produce the
following:
PARTID COMPONENTID
030.11A 030.090
030.11A 030.091
030.11A 030.09A
030.090 010.11A
030.090 010.11B
030.091 <no components, field is blank but record must be selected>
030.09A <no components, field is blank but record must be selected>
010.11A 001.001
010.11B <no components, field is blank but record must be selected>
001.001 <no components, field is blank but record must be selected>
I'm thinking a DAO or ADO recordset to loop through all records until
COMPONENTID returns ull and append the PARTID to a temporary table. Hoping
for a query solution. Any help is appreciated.
Thanks,
Jason
records per part. For example:
PARTID COMPONENTID
030.11A 030.090
030.11A 030.091
030.11A 030.09A
Issue - components are records within the same table and may contain
multiple sub-components themselves. It's possible there could be several
levels.
We need to select all records for a specific part and all records for all
components and all their parts.
For example, given the PARTID above, we need a query to produce the
following:
PARTID COMPONENTID
030.11A 030.090
030.11A 030.091
030.11A 030.09A
030.090 010.11A
030.090 010.11B
030.091 <no components, field is blank but record must be selected>
030.09A <no components, field is blank but record must be selected>
010.11A 001.001
010.11B <no components, field is blank but record must be selected>
001.001 <no components, field is blank but record must be selected>
I'm thinking a DAO or ADO recordset to loop through all records until
COMPONENTID returns ull and append the PARTID to a temporary table. Hoping
for a query solution. Any help is appreciated.
Thanks,
Jason