P
Prachi via AccessMonster.com
Is it possible to delete all records (tables ) at the click of a button?
Prachi said:thanks for replying..
So this will just delete the records from the local Access application right?And instead of the records in the table can I delete all the tables Also once i delete these tables I want to import fresh tables from the main database(basically i want to perform File->Get External Data->Import->Type of
database->Name of connection.Is there a way to do this.I have an ODBC connection installed on my computer that connects to the Database[quoted text clipped - 7 lines]Hi Prachi,
So this will just delete the records from the local Access application
right?
George said:So this will just delete the records from the local Access application
right?
Well, *if* "name of table you wanna empy" is a local table, then yes, it
will just delete local data.
Also, keep in mind that instruction only empties *one* table, not all tables
in the application
If you want to empty more than one table, simply repeat that instruction as
many as necessary.
docmd.runsql ("delete * from table1")
docmd.runsql ("delete * from table2")
If you have enforced relationships between tables, you may have to do the
deletes for that group of tables in a specific order (bottom of heirarchy to
top)
Reverse the order when filling those tables again (top of heirarchy to
bottom).
HTH,
[quoted text clipped - 16 lines]thanks for replying..
So this will just delete the records from the local Access application