KEY_Dialog, ID_Obs .....
Table tbl_Obs
KEY_Obs, ID_Review .....
They are linked by KEY_Obs and ID_Obs, and I want to delete all records in tbl_Dialog having ID_Review=1200.
I tried:
Expand|Select|Wrap|Line Numbers
- myDB.Execute "DELETE tbl_Dialog.* FROM tbl_Dialog INNER JOIN tbl_Obs ON (tbl_Dialog.ID_Obs=tbl_Obs.KEY_Obs) " & _
- ' " WHERE (((tbl_Obs.ID_Review) In " & listRelatedReviews(lngRevID) & ") AND (tbl_Dialog.dt_Date=" & formatSQLdate(dtSubmittal) & "));"
My problem is that instead of only deleting the records in tbl_Dialog, the code also deleted the records in tbl_Obs.
What should I change to only delete the records from tbl_Dialog?