When I import a spreadsheet into a table, I'm saving off the existing table as an archived table. When I save the table, the table name has the date within it. Ex: PM_Archive_130802. My archived tables are bloating the DB, so I'd like to write code that deletes the oldest dated table.
I'm unclear on the most efficient way of doing this. I know I need to loop through the tables, and somehow determine which of the archived tables is the oldest date, then delete this file.
I can change the format of the date within the table name.
Thank you in advance!!