Hello.
I am trying to delete all of the tables, on a command button, from a self contained database.
I have managed it with one table but for an unknown reason it does not want to delete all of the tables. I am using the code:
DoCmd.DeleteObject acTable, "TableName1"
This works but if I try to put this line in several times for other tables it will not work.
If I try to delete "TableName6" on its own it will not work.
I do not know the reason - I can only guess that it will delete table1 because that is the table that is being used and is therefore "live" at the time.
Any suggestions please?
Regards
I
I am trying to delete all of the tables, on a command button, from a self contained database.
I have managed it with one table but for an unknown reason it does not want to delete all of the tables. I am using the code:
DoCmd.DeleteObject acTable, "TableName1"
This works but if I try to put this line in several times for other tables it will not work.
If I try to delete "TableName6" on its own it will not work.
I do not know the reason - I can only guess that it will delete table1 because that is the table that is being used and is therefore "live" at the time.
Any suggestions please?
Regards
I