Re: Delete ImportError TABLES
Thanks Alan,
Created a new module
Code
Function deladdresserrors() As Boolean
Dim tdef As tabledef
For Each tdef In CurrentDb.tabledefs
If Left(tdef.Name, 20) = "address_Importerrors" Then
curentdb.tabledefs(tdef.Name).Delete
End If
Next
End Function
but it does not seem to work because I am certainly wrong defining the function as boolean. How should I define it?
My macro is currently doing this:
1)runs a macro to pull a range called "address" from lets say 4 spreadsheets to a table called "address table" (DONE)
2)a deletequery deletes blank records from the "address table" (DONE)
3)here I would run your code to clear the "address_importerrors" ( HELP! )
4)MSGBOX confirmation (DONE)
Appreciate your help