I have set up a Query formed of two tables. However when I run the delete query I get a message saying 'Specify the table containing the record you want to delete'. Could anyone please help me on how to do this. Here is the SQL:
DELETE DISTINCTROW DVDCopy.CopyNumber, DVDCopy.DVDNumber, DVDCopy.DatePurchased, Loan.DateReturned
FROM DVDCopy INNER JOIN Loan ON DVDCopy.CopyNumber = Loan.CopyNumber
WHERE (((DVDCopy.DatePurchased)<CDate(Date())-365) AND ((Loan.DateReturned) Is Not Null));
Many Thanks
DELETE DISTINCTROW DVDCopy.CopyNumber, DVDCopy.DVDNumber, DVDCopy.DatePurchased, Loan.DateReturned
FROM DVDCopy INNER JOIN Loan ON DVDCopy.CopyNumber = Loan.CopyNumber
WHERE (((DVDCopy.DatePurchased)<CDate(Date())-365) AND ((Loan.DateReturned) Is Not Null));
Many Thanks