S
Silvio
I have 4 tables related to each other as follow: table 1 as the parent and
table 2, 3 and 4 as child using a one-to-may relation to table 1. Each table
is related to table 1 by the primary key, the record_ID. I created a query
using table 1 and table 2 and I am able to add records, however when I add
also table 3 and/or 4 then I am unable to add records. I know I can create a
form with 3 subforms to accomplish this, but I wonder if there is a way
accomplishes this at the query level.
Can add records:
SELECT tbl1.[Record_ID], tbl1.[Calibration Date], tbl2.DOmgL
FROM tbl1 INNER JOIN tbl2 ON tbl1.[Record_ID] = tbl2.Record_ID;
Can not add record:
SELECT tbl1.[Record_ID], tbl1.[Calibration Date], tbl2.DOmgL, tbl3.Cycle
FROM (tbl1 INNER JOIN tbl2 ON tbl1.[Record_ID] = tbl2.Record_ID) INNER JOIN
tbl3 ON tbl1.[Record_ID] = tbl3.Record_ID;
table 2, 3 and 4 as child using a one-to-may relation to table 1. Each table
is related to table 1 by the primary key, the record_ID. I created a query
using table 1 and table 2 and I am able to add records, however when I add
also table 3 and/or 4 then I am unable to add records. I know I can create a
form with 3 subforms to accomplish this, but I wonder if there is a way
accomplishes this at the query level.
Can add records:
SELECT tbl1.[Record_ID], tbl1.[Calibration Date], tbl2.DOmgL
FROM tbl1 INNER JOIN tbl2 ON tbl1.[Record_ID] = tbl2.Record_ID;
Can not add record:
SELECT tbl1.[Record_ID], tbl1.[Calibration Date], tbl2.DOmgL, tbl3.Cycle
FROM (tbl1 INNER JOIN tbl2 ON tbl1.[Record_ID] = tbl2.Record_ID) INNER JOIN
tbl3 ON tbl1.[Record_ID] = tbl3.Record_ID;