Free Lessons
Courses
Seminars
TechHelp
Fast Tips
Templates
Topic Index
Forum
ABCD
 
Home   Courses   TechHelp   Forums   Help   Contact   Merch   Join   Order   Logon  
 
Back to Access Forum    Comments List
Upload Images   @Reply   Bookmark    Link   Email   Next Unseen 
Clear all data
Ian Hartwell 
    
2 years ago
I have a database that contains 2 yrs worth of data and would like to copy the database and clear it out so I can give another department an empty database for them to use. Is there an easy way to do this?
Kevin Yip  @Reply  
     
2 years ago
Your tables most likely have a lot of relationships, so their records have to be deleted *in order*, otherwise you may get errors for violating relationships.  A child table's records have to be deleted before its parent table's records.  For instance, an order detail table has to be cleared out first before an order header table, and so forth.  If a parent table has multiple child tables, all children have to be cleared out first.  If you have lots of tables, this can be easier said than done.
Kevin Yip  @Reply  
     
2 years ago
You need to back up everything first, which goes without saying.
Richard Rost  @Reply  
          
2 years ago
Yeah, like Kevin said, it's just a matter of opening up each table and deleting the records. If you've got related records, you might have to take that into consideration. If this was something that you did on a regular basis, then I would say you could make some macros or some VBA code to do it. But if it's just a one-time thing, you're better off just manually deleting the records yourself.
Ian Hartwell OP  @Reply  
    
2 years ago
Thank you for your quick response, looks like I need to get busy.

This thread is now CLOSED. If you wish to comment, start a NEW discussion in Access Forum.
 

Next Unseen

 
New Feature: Comment Live View
 
 

The following is a paid advertisement
Computer Learning Zone is not responsible for any content shown or offers made by these ads.
 

Learn
 
Access - index
Excel - index
Word - index
Windows - index
PowerPoint - index
Photoshop - index
Visual Basic - index
ASP - index
Seminars
More...
Customers
 
Login
My Account
My Courses
Lost Password
Memberships
Student Databases
Change Email
Info
 
Latest News
New Releases
User Forums
Topic Glossary
Tips & Tricks
Search The Site
Code Vault
Collapse Menus
Help
 
Customer Support
Web Site Tour
FAQs
TechHelp
Consulting Services
About
 
Background
Testimonials
Jobs
Affiliate Program
Richard Rost
Free Lessons
Mailing List
PCResale.NET
Order
 
Video Tutorials
Handbooks
Memberships
Learning Connection
Idiot's Guide to Excel
Volume Discounts
Payment Info
Shipping
Terms of Sale
Contact
 
Contact Info
Support Policy
Mailing Address
Phone Number
Fax Number
Course Survey
Email Richard
[email protected]
Blog RSS Feed    YouTube Channel

LinkedIn
Copyright 2026 by Computer Learning Zone, Amicron, and Richard Rost. All Rights Reserved. Current Time: 5/6/2026 7:41:01 PM. PLT: 1s