I use the following code to delete import error tables.
Code:
Dim db As Database
Dim tdf As TableDef
Set db = CurrentDb
For Each tdf In db.TableDefs
If tdf.Name Like [COLOR=Red]"E*" [/COLOR] Then
DoCmd.DeleteObject acTable, tdf.Name
End If
Next
Set db = Nothing
Generally the import error tables in my projects are mainly due to type conversions. If I formatted the spreadsheets and ensured the data was in a correct format then access wouldn't generate these I suppose.
All of my import error tables generally begin E1**_Importerrors which is why in the code it looks for tables beginning with 'E' see the red highlight in the code.