You can identify duplicates by the following:
Select [fieldname], count(*) ;
From [tablename] ;
Group by [fieldname] ;
Having count(*) > 0 ;
Into Cursor [cursorname]
Use your drawing number + revision as the [fieldname]. You should then be able to work something out from the resultant cursor. (All the above is from memory - should be correct but I'm not 100% on it).
>I have a table in which records are appended to it from another app. The table contains a drawing number, a revision and a datetime field the record was appended. The table can recieve records of duplicate drawing numbers with different rev levels. My quest is to have a routine to "purge" the table of previous revisions and only leave the current or latest revision in the table before it is used to do the task it was created for. Thanks for any help.