Thank you so much, this was exactly what i was looking for. #12 post did not help since the name of the tables were not table1, table 2, etc.
Once again the reason for wanted to create this code was to find a solution of emptying all the tables with a simple click while writing codes and see...