Hello VbForums
With SQLite and RC5 how can I delete records from table1 that do not exist in table2?
Image may be NSFW.
Clik here to view.
So the rows which are concered with deleetion are in yellow.
This is what I'm trying to do but without success.
With SQLite and RC5 how can I delete records from table1 that do not exist in table2?
Image may be NSFW.
Clik here to view.

So the rows which are concered with deleetion are in yellow.
This is what I'm trying to do but without success.
Code:
DELETE FROM Tbl2 " & _
" WHERE PID IN (SELECT Tbl2.PID FROM recette_tbl LEFT JOIN Tbl1 " & _
" ON Tbl2.PID=Tbl1.PID WHERE Tbl1.PID IS NULL)"