Deleting non-unique records (1 Viewer)

gasbored

Registered User.
Local time
Today, 07:38
Joined
Jul 30, 2007
Messages
12
I have imported a large number of emails into a table tbl_requests.

I had intended to have unique file tbl_requests.date_opened unique, but have ended up with a lot of duplicate records (i.e. tbl_requests.date_opened is not unique !). Any idea how to delete any duplicates? I have 15,000 records...
 

gasbored

Registered User.
Local time
Today, 07:38
Joined
Jul 30, 2007
Messages
12
Thanks, I had been seen some of those but had another lookk after your reply. I have got as far as creating a Delete query

DELETE [Copy Of tbl_requests].*
FROM [Copy Of tbl_requests] INNER JOIN qryUniqueDateOpened ON [Copy Of tbl_requests].date_opened=qryUniqueDateOpened.date_opened
WHERE ((([Copy Of tbl_requests].request_id)<>[qryuniquedateopened].[minofrequest_id]));


However, I get 'Could not delete from specified tables', in spite of the fact that I can manually delete from the table called '[Copy Of tbl_requests]'. Any ideas on this?
 

Users who are viewing this thread

Top Bottom