I have several temp tables that are created when we extract data from our legacy system.
Whenever we want to re extract the data these tables need to be deleted first.
I have tried to use the following code I wrote but it does not work
I am not very experienced yet in creating my wn code and any help tp point me in the right direction would be appreciated
Regards
Paul
Whenever we want to re extract the data these tables need to be deleted first.
I have tried to use the following code I wrote but it does not work
Code:
Private Sub DeleteTables()
Dim curDatabase As Object
Set curDatabase = CurrentDb
curDatabase.TableDefs.Delete "tmp*"
End Sub
I am not very experienced yet in creating my wn code and any help tp point me in the right direction would be appreciated
Regards
Paul