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 > TechHelp > Directory > Access > Prevent Deletion < What is Microsoft Access | Access on a Phone >
Back to Prevent Deletion    Comments List
Dumb Question Upload Images   Link   Email  
Sandra Truax         
10 months ago
I've played with this in test, but...

The member video shows how to use dLookup to see if there are any records in the child tables, and if so, delete them.

My question is, is it necessary to look first, or can the delete query just be ran for each child table, or could this possibly cause problems if there is no records in one of the tables?  I know in testing, nothing happened, but before I use it as common practice, I wanted to check with y'all to see if there could possibly be problems down the line.
Scott Axton            
10 months ago
I think you might have answered your own question.
If you run your delete for something that isn't there what response did you get?

If you say "Delete from xxxChildTable any records that match 123 ID"
Access is just going to do it. (Unless you have an Are you Sure in place.)  It shouldn't throw an error if there aren't any.
The flip side is -- it is just going to delete records with out throwing an error.

Deleting records can have unintended consequences in either case.  I really don't like doing it but some times you just cant get away from it. As long as you are practicing good self-preservation methods (BACK UPS) so you can recover from disaster if you need to.

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

 
 
 

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 2024 by Computer Learning Zone, Amicron, and Richard Rost. All Rights Reserved. Current Time: 5/24/2024 6:29:20 AM. PLT: 1s