KenSheridan via AccessMonster.com replied to kikeman
20-Nov-09 06:14 PM
This should do it:
DELETE *
FROM Orders AS O1
WHERE DateDone =
(SELECT MIN(DateDone)
FROM Orders AS O2
WHERE O2.Customer = O1.Customer);
Be sure to switch to datasheet view before executing the query to check that
it will be deleting the correct rows. And it goes without saying that before
these sort of set operations are undertaken the database should be backed up.
BTW database tables do not have 'cells'. That's a spreadsheet concept. Tables
have rows with values at column positions in each row.
Ken Sheridan
Stafford, England
--
Message posted via AccessMonster.com
http://www.accessmonster.com/Uwe/Forums.aspx/access/200911/1