Trying to clean up some data and I know the solution is simple but its eluding me, even after searching these forums.
I have 2 tables: tblFinancialTransactions and tblTransactionCase. The join field for the two tables is intPaymentID. I'm wanting to delete the records in tblFinancialTransactions that don't have at least one matching record in tblTransactionCase.
The last delete query I tried was:
DELETE tblFinancialTransactions.*, tblTransactionCase.intPaymentID
FROM tblFinancialTransactions LEFT JOIN tblTransactionCase ON tblFinancialTransactions.intPaymentID = tblTransactionCase.intPaymentID
WHERE (((tblTransactionCase.intPaymentID) Is Null));
I get the error: Could not delete from the specified tables
I've tried taking tblTransactionCase.intPayment out of the Delete clause but I get the same error.
Thanks in advance for the help.
-Lution
I have 2 tables: tblFinancialTransactions and tblTransactionCase. The join field for the two tables is intPaymentID. I'm wanting to delete the records in tblFinancialTransactions that don't have at least one matching record in tblTransactionCase.
The last delete query I tried was:
DELETE tblFinancialTransactions.*, tblTransactionCase.intPaymentID
FROM tblFinancialTransactions LEFT JOIN tblTransactionCase ON tblFinancialTransactions.intPaymentID = tblTransactionCase.intPaymentID
WHERE (((tblTransactionCase.intPaymentID) Is Null));
I get the error: Could not delete from the specified tables
I've tried taking tblTransactionCase.intPayment out of the Delete clause but I get the same error.
Thanks in advance for the help.
-Lution