ghudson
Registered User.
- Local time
- Today, 16:49
- Joined
- Jun 8, 2002
- Messages
- 6,193
Is there a better way (less code) to delete a table IF it exists? This is what I am using...
Dim t As Object
For Each t In CurrentDb.TableDefs
If t.Name = "TestTable" Then DoCmd.DeleteObject acTable, "TestTable"
Next t
Thanks in advance for your help and suggestions!
Dim t As Object
For Each t In CurrentDb.TableDefs
If t.Name = "TestTable" Then DoCmd.DeleteObject acTable, "TestTable"
Next t
Thanks in advance for your help and suggestions!