I am trying to delete data from several tables in another DB - where the table name matches the tables in my current DB. I so far have:
Dim t As TableDef
DoCmd.SetWarnings False
For Each t In CurrentDb.TableDefs
If t.Name Like "*" Then
CurrentDb.Execute "Delete From T.name In 'C:\Users\InternetUser\Desktop\TestSD.accdb'"
End If
Next t
But alas it does not work. Also if I have a table thats not in my destination - just resume next I suppose
Any help please
Dim t As TableDef
DoCmd.SetWarnings False
For Each t In CurrentDb.TableDefs
If t.Name Like "*" Then
CurrentDb.Execute "Delete From T.name In 'C:\Users\InternetUser\Desktop\TestSD.accdb'"
End If
Next t
But alas it does not work. Also if I have a table thats not in my destination - just resume next I suppose
Any help please