P
Pietro
Hi,
Is there a code that deletes all forms,queries or tables?
Is there a code that deletes all forms,queries or tables?
Dale Fye said:Take a look at the docmd.DeleteObject method.
You can put this inside a loop, something like:
For each tbl in currentdb.tabledefs
docmd.deleteobject acTable, tbl.name
next
John Spencer said:Also, you would probably delete every other table/object.
Delete table #0
Table #1 moves to position #0
Advance to next table position
Table #2 is now in position 1
Delete table #2
Table #3 is now in position 1
Advance to position 2
Delete Table #4 which is in position 2
etc.
Hi,
Is there a code that deletes all forms,queries or tables?
Pietro said:Hi,
Is there a code that deletes all forms,queries or tables?