Another question with my ongoing adventures in dealing with Access queries ...
I am trying to run a delete query, which removes records in a given field in Table 1 that match those in Table 2. I can set this up OK and when I do a view the dynatable looks like its picking the correct records out to delete, but when I actually run the delete query I get a message "Could not delete from specified tables". I've tried linking and not linking the tables, and including a value in the 'Where' box or leaving it empty.
The SQL is something along the line of the following (I may have messed up the parentheses and brackets since this is an edited copy):
DELETE [Table1].*, Table2.TargetField
FROM [Table1]
WHERE (((Table2.TargetField)=Table1.Target Field));
Any suggestions would be appreciated.
Thanks.
I am trying to run a delete query, which removes records in a given field in Table 1 that match those in Table 2. I can set this up OK and when I do a view the dynatable looks like its picking the correct records out to delete, but when I actually run the delete query I get a message "Could not delete from specified tables". I've tried linking and not linking the tables, and including a value in the 'Where' box or leaving it empty.
The SQL is something along the line of the following (I may have messed up the parentheses and brackets since this is an edited copy):
DELETE [Table1].*, Table2.TargetField
FROM [Table1]
WHERE (((Table2.TargetField)=Table1.Target Field));
Any suggestions would be appreciated.
Thanks.