Hi all; For vba cod, how to delete all records from a table tbltest, except the last 6 records where field 1 = "xpto" ?