A
Angeldb
I have a component database consisting of different component tables. e.g.
Table: COMP_UL
Fields: ID, PartNum, Mfr, Model, Accuracy
Table: COMP_ LS
Fields: ID, PartNum, Mfr, Model, Stability
There will be an estimated 25 tables with this similar format once me and my
fellow co-workers finish this up. I felt this schema was best based on the
uniqueness of reports we're going to run for each component type. I have not
included all the unique fields here for clarity.
I'm trying to relate these component tables together with a component list
table called "InstrumentTag" that has unique tags (reference designators) for
each component. "InstrumentTag" also has fields "ComponentTable" and
"COMP_ID". "ComponentTable" contains the name of the table and COMP_ID the ID
in that table. e.g.
TableName: InstrumentTags
Fields: TagNo, ComponentTable, COMP_ID, Mounting, DrawingNo
I want a query that will give me the following output matching
[InstrumentTag].[ComponentTable] with the table name out of my database:
Query: Master Component List
Fields: TagNo, PartNum, Mfr, Model, Mounting, DrawingNo
but without having to create a query for each component type whereby I must
build for each component table. Is there a SQL statement could be constructed
in Access to achieve this?
If not, what should I try?
Thanks in advance,
Angeldb
Table: COMP_UL
Fields: ID, PartNum, Mfr, Model, Accuracy
Table: COMP_ LS
Fields: ID, PartNum, Mfr, Model, Stability
There will be an estimated 25 tables with this similar format once me and my
fellow co-workers finish this up. I felt this schema was best based on the
uniqueness of reports we're going to run for each component type. I have not
included all the unique fields here for clarity.
I'm trying to relate these component tables together with a component list
table called "InstrumentTag" that has unique tags (reference designators) for
each component. "InstrumentTag" also has fields "ComponentTable" and
"COMP_ID". "ComponentTable" contains the name of the table and COMP_ID the ID
in that table. e.g.
TableName: InstrumentTags
Fields: TagNo, ComponentTable, COMP_ID, Mounting, DrawingNo
I want a query that will give me the following output matching
[InstrumentTag].[ComponentTable] with the table name out of my database:
Query: Master Component List
Fields: TagNo, PartNum, Mfr, Model, Mounting, DrawingNo
but without having to create a query for each component type whereby I must
build for each component table. Is there a SQL statement could be constructed
in Access to achieve this?
If not, what should I try?
Thanks in advance,
Angeldb