skiller
New member
- Local time
- Today, 07:52
- Joined
- Nov 6, 2022
- Messages
- 9
Hi all,
I have a simple query involving 2 tables with an inner join and the resulting recordset is updateable.
But when I add another table to the query which is inner joined to both of the other 2 tables then the resulting recordset is now not updateable.
Can anyone explain why?
My query which is updateable is as follows:
My query which is NOT updateable is as follows:
I have attached the tiny example DB for anyone who would be kind enough to offer an explanation.
Thanks!
I have a simple query involving 2 tables with an inner join and the resulting recordset is updateable.
But when I add another table to the query which is inner joined to both of the other 2 tables then the resulting recordset is now not updateable.
Can anyone explain why?
My query which is updateable is as follows:
SQL:
SELECT
dn.OrderNo,
di.DelNoteNo,
di.ItemNo,
di.ProdCode,
di.ValueToEdit
FROM
tblDeliveryItem di
INNER JOIN
tblDeliveryNote dn
ON di.DelNoteNo = dn.DelNoteNo;
My query which is NOT updateable is as follows:
SQL:
SELECT
dn.OrderNo,
di.DelNoteNo,
di.ItemNo,
di.ProdCode,
di.ValueToEdit,
oi.Roy
FROM
tblOrderItem oi
INNER JOIN
(tblDeliveryItem di
INNER JOIN
tblDeliveryNote dn
ON di.DelNoteNo = dn.DelNoteNo
)
ON oi.ProdCode = di.ProdCode AND oi.OrderNo = dn.OrderNo;
I have attached the tiny example DB for anyone who would be kind enough to offer an explanation.
Thanks!