This article was previously published under Q210307
Moderate: Requires basic macro, coding, and interoperability skills.
Notice: This website is an unofficial Microsoft Knowledge Base (hereinafter KB) archive and is intended to provide a reliable access to deleted content from Microsoft KB. All KB articles are owned by Microsoft Corporation. Read full disclaimer for more details.
View products that this article applies to.
Option Explicit
Function DeleteImportErrorTables ()
Dim db As DAO.Database, t As DAO.TableDef, i As Integer
Set db = CurrentDB()
For i = db.tabledefs.count - 1 To 0 Step -1
Set t = db.tabledefs(i)
If t.name Like "Import Errors*" Then
db.tabledefs.Delete t.name
End If
Next i
db.Close
End Function
? DeleteImportErrorTables ()
Keywords: KB210307, kbusage, kbhowto