Free Lessons
Courses
Seminars
TechHelp
Fast Tips
Templates
Topic Index
Forum
ABCD
 
Home   Courses   Index   Templates   Seminars   TechHelp   Forums   Help   Contact   Join   Order   Logon  
 
Home > Courses > Access > Expert > X02 > < X01 | X03 >
Back to Access Expert 2    Comments List
Upload Images   Link   Email  
Cascade Delete
Michael Olsen 
        
2 years ago
Seeking clarification (MS Help is vague on this):

If I have a table <Personnel> and it is related to <table1>, <table2>, and <table3>.  Can I have Cascade Delete with <table2> only, or will it affect <table1> and <table3> as well?
Adam Schwanz 
            
2 years ago
Do table 1 and table 3 have referential integrity on?
Michael Olsen OP 
        
2 years ago
Yes
Adam Schwanz 
            
2 years ago
You won't be able to delete records if there is a joined record in the other tables then.
Michael Olsen OP 
        
2 years ago
So a cascade delete in a single relationship affects all networked relationship with referential integrity.  Not just the two tables in the immediate relationship?
Adam Schwanz 
            
2 years ago
If referential integrity is on, you won't be able to delete a record from Personnel if there is a related record in any of the tables that have a relationship with it with referential integrity. You'd have to delete the records from Table1,2, and 3, and then delete the record in Personnel. If you try to delete a record in Personnel you should get an error about related records existing in another table. If there is no joined record in table 1 and table 3, the delete will probably work with just table 2.
Scott Axton 
          
2 years ago
Cascade deletes are very dangerous IMHO.  I NEVER use them and only delete sparingly and very intentionally.

Before you get too far down the road you might want to check out the Don't Delete Data video.
In conjunction with that how to Archive Records when you need that space back.

In addition, they won't work in a split database when and if your db becomes large enough.

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

 
 
 

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 2025 by Computer Learning Zone, Amicron, and Richard Rost. All Rights Reserved. Current Time: 4/19/2025 3:52:39 AM. PLT: 1s