G
Guest
Good morning to everyone:
I have several tables in a small database. I am new at this so please bear
with me.
The first table has a primary key WO wich is an autonumber. The second
table has a WO field which is a number and has another primary key. The
third table has a WO field and a different primary key. My problem is that
when I create a query with the first and second field I can add any records
as needed. However when I create a query with the first, second and third
table I am unable to insert any records!! The queary links the tables with
WO field.
Below is the SQL code for the query.
SELECT Test1.WO, Test1.name, Test1.last, Test3.ID, Test3.WO, Test3.Spec1,
Test3.Spec2, Test3.Spec3, Test3.Spec4, Test3.Spec5, Test1.address, Test3.ID
FROM (Test1 INNER JOIN Test3 ON Test1.WO = Test3.WO) INNER JOIN Test4 ON
Test3.WO = Test4.WO;
Does anybody know why this is happening?
Thanks
Celia
I have several tables in a small database. I am new at this so please bear
with me.
The first table has a primary key WO wich is an autonumber. The second
table has a WO field which is a number and has another primary key. The
third table has a WO field and a different primary key. My problem is that
when I create a query with the first and second field I can add any records
as needed. However when I create a query with the first, second and third
table I am unable to insert any records!! The queary links the tables with
WO field.
Below is the SQL code for the query.
SELECT Test1.WO, Test1.name, Test1.last, Test3.ID, Test3.WO, Test3.Spec1,
Test3.Spec2, Test3.Spec3, Test3.Spec4, Test3.Spec5, Test1.address, Test3.ID
FROM (Test1 INNER JOIN Test3 ON Test1.WO = Test3.WO) INNER JOIN Test4 ON
Test3.WO = Test4.WO;
Does anybody know why this is happening?
Thanks
Celia