Clearing an Access database?

Status
This thread has been Locked and is not open to further replies. Please start a New Thread if you're having a similar issue. View our Welcome Guide to learn how to use this site.

subnet_rx

Thread Starter
Joined
Oct 15, 2004
Messages
168
Is there an easy way to keep the structure but clear all data out of an Access database?
 
Joined
Oct 20, 2004
Messages
7,837
Only 2 come to mind, both easy in a simple database and both a pain in a very complex one. For each table, you can copy and paste the table, saving the structure in the pasted table. If you wish, rename or delete the old table and name the new one with the old name - this will keep all queries, forms, etc valid.
The other way would be to open up each table, highlight all the data and delete it. I am no guru - there may be a faster way, though.
 
Joined
Nov 13, 2003
Messages
1,021
Make sure to make a backup first. I am assuming you have relationships and cascading updates/deletes setup. I always remove the relationships, delete the data from the tables - then set the relationships back up the way they were.
 
Status
This thread has been Locked and is not open to further replies. Please start a New Thread if you're having a similar issue. View our Welcome Guide to learn how to use this site.

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

As Seen On
As Seen On...

Welcome to Tech Support Guy!

Are you looking for the solution to your computer problem? Join our site today to ask your question. This site is completely free -- paid for by advertisers and donations.

If you're not already familiar with forums, watch our Welcome Guide to get started.

Join over 807,865 other people just like you!

Latest posts

Staff online

Top