W
Wanderer
Hi:
I want to write a query which inserts a record entered into a main
table into other tables within a database.
The main table is productInfo and the productID is the primary key for
this table and the other tables (phasePort, phaseQuality,
phaseSubmission).
When a new record is created in productID, I want the other tables to
automatically have a matching productID inserted in their respective
fields.
Basically, this is a tracking database to monitor the development of
software in the following order:
Product information entered in productInfo table -> Product port
status entered into phasePorting -> Product QA status entered into
phaseQuality -> Product submission status entered into phaseSubmission
This way we can find out the development phase a product is in and
when will it clear that phase.
The query for Access that I came up with is below. But it says "Query
Input must contain atleast one table or query" and I am a bit lost on
this.
Will really appreciate any help I can get.
SELECT productInfo.productID AS productInfo_productID INTO
phasePort.productID AS phasePort_productID, phaseQuality.productID AS
phaseQuality_productID , phaseSubmission.productID AS
phaseSubmission_productID
FROM productInfo
WHERE phasePort.productID != productInfo.productID AND
phaseQuality.productID != productInfo.productID AND
phaseSubmission.productID != productInfo.productID;
I want to write a query which inserts a record entered into a main
table into other tables within a database.
The main table is productInfo and the productID is the primary key for
this table and the other tables (phasePort, phaseQuality,
phaseSubmission).
When a new record is created in productID, I want the other tables to
automatically have a matching productID inserted in their respective
fields.
Basically, this is a tracking database to monitor the development of
software in the following order:
Product information entered in productInfo table -> Product port
status entered into phasePorting -> Product QA status entered into
phaseQuality -> Product submission status entered into phaseSubmission
This way we can find out the development phase a product is in and
when will it clear that phase.
The query for Access that I came up with is below. But it says "Query
Input must contain atleast one table or query" and I am a bit lost on
this.
Will really appreciate any help I can get.
SELECT productInfo.productID AS productInfo_productID INTO
phasePort.productID AS phasePort_productID, phaseQuality.productID AS
phaseQuality_productID , phaseSubmission.productID AS
phaseSubmission_productID
FROM productInfo
WHERE phasePort.productID != productInfo.productID AND
phaseQuality.productID != productInfo.productID AND
phaseSubmission.productID != productInfo.productID;