I'm having trouble getting the follow delete query to work (ms access 2007)
DELETE FROM T_Value b
INNER JOIN T_Value AS a ON b.MeasTime = a.MeasTime
AND b.JobId = a.JobId
WHERE b.DataId > a.DataId
The aim of the query is to remove duplicate entries efficiently. DataId is the tables single primary key. Duplicate entries are determined by comparing the fields MeasTime and JobId.
Access returns the message Specify the table containing the records you wish to delete. Any help will be much appreciated.