Well yes, that's what I thought.
The designer, for some reason, created the first line as
delete a.*, b.type
and when I tried to run it I got the error message
"Cannot delete from the specified tables".
Thinking that it wanted to delete from the lookup table, which is a read-only link, I removed the b.type from the delete, but still get the same message.
I can delete from the target table via a query with no problem, so the difficulty must be with the lookup table.
But what ?
This is the acttual code:
DELETE P60_Payment_Detail.*
FROM P60_Payment_Detail INNER JOIN RO_EXII_V_PRODUCT ON [P60_Payment_Detail].[PolicyNumber]=[RO_EXII_V_PRODUCT].[SOURCE_SYSTEM_PRODUCT_REF]
WHERE ((([RO_EXII_V_PRODUCT].[PRODUCT_TYPE_ID]) Not In (220100,91000085)));
Regards,
Graham