I am using MS Access 365. I have a table containing records that is updated throughout the day. Since this table can grow large, I want to limit the number of records in this table to the most recent 10,000 (recent is defined by a Timestamp field). What combination of TOP LIMIT and SORT BY by can I use to create a query that deletes the oldest N-10000 records
Thank you
I assume you have an
IDfield in your table which I namedtblDatathen you could use the following SELECT statement to display all records which should be deletedIn order to delete the data you only need to replace the first
SELECTwith aDELETE