Access 2007-2019
Access 2000-2003
Access Seminars
TechHelp Support
Tips & Tricks
Access Forum
Course Index
Topic Glossary
Insider Circle
Home   Courses   Seminars   Templates   TechHelp   Fast Tips   Forums   Help   Contact   Join   Order   Logon  
Home > TechHelp > Directory > Access > Prevent Deletion < Union Query | Access on a Phone >
Prevent Deletion
By Richard Rost   Richard Rost on Twitter Richard Rost on LinkedIn Email Richard Rost   4 months ago

Preventing Record Deletion in Microsoft Access

 S  M  L  XL  FS  Join Now

In this video, I will show you how to prevent a user from deleting a customer record unless certain conditions are met, for example, the customer has to be marked inactive. If they are still active, they cannot be deleted.

Anderson from North Hempstead, New York (a Platinum Member) asks: We have customers who, for one reason or another, will no longer be customers anymore. They might die, retire, move out of our area, etc. I want to allow my users to delete a customer but only once he's been marked inactive. I feel like this is an extra check preventing them from deleting a customer too easily. What do you recommend?


Members will learn how to handle deleting records that may have related child records in multiple linked back-end tables where you can't rely on referential integrity and cascade deletes. I'll also show you how to require a password to delete a record. 

Silver Members and up get access to view Extended Cut videos, when available. Gold Members can download the database template from class plus get access to the Code Vault. If you signed up on YouTube you have to contact me so I can set up your account here on my web site. If you're not a member, Join Today!


Learn More

FREE Access Beginner Level 1
Access Level 2 for $1.00

Free Templates

TechHelp Free Templates
Blank Template
Contact Management
Order Entry & Invoicing
More Access Templates


Mailing List - Get Emails When New Videos Released!
Consulting - Need Help with Your Database?


Please feel free to post your questions or comments below or submit them via the TechHelp page.


microsoft access, ms access, ms access tutorial, #msaccess, #microsoftaccess, #help, #howto, #tutorial, #learn, #lesson, #training, #database, soft delete, dont delete, mark inactive, prevent deletion, allow deletions, allow deletes, die, retire, move out of area, referential integrity, cascade deletes, vba, on delete, delete button, me.allowdeletions, inputbox, password, delete child records, delete orders


Multiple Delete Upload Images   Link  
Ibrahim Hasouna 
3 months ago
So, How to do that is Continues form, said I want to delete multiple customers that are In Active, so I select all items and click delete btn that we just made, I want it to delete the In Active after checking the criteria, however, it only delete the record I am sitting on, I run in a situations when I want to delete a group of records at once but want to add checking for some criteria, any advice ?
Richard Rost
3 months ago
Use a delete query.
Ibrahim Hasouna
2 months ago
I used Delete query on a parent form and called from code builder and Me.Refresh after, however, the deleted records don't disappear whatever I do, I must hit refresh button for them to disappear, I used Me.Requery as well without luck, what I should do ?
Kevin Robertson
2 months ago
I'm assuming the records you want to delete are in a subform. If so use this syntax:

Add a Reply

Show All Comments

Start a NEW Conversation
Only students may post right now. Click here for more information on how you can set up an account. If you are a student, please LOG ON first.

You may want to read these articles from the 599CD News:

1/28/2022Duplicate Record
1/28/2022ABCD Core Part 7
1/27/2022Work Days
1/27/2022MyNetWorkDays (Free)
1/27/2022Access Developer 35
1/26/2022Yes/No Fields
1/22/2022Next Appointment
1/18/2022Access B2 Upgrade
1/17/2022Access Beginner 2 Links

Access - index
Excel - index
Word - index
Windows - index
PowerPoint - index
Photoshop - index
Visual Basic - index
ASP - index
My Account
My Courses
Lost Password
Student Databases
Change Email
Latest News
New Releases
User Forums
Topic Glossary
Tips & Tricks
Search The Site
Code Vault
Collapse Menus
Customer Support
Web Site Tour
Consulting Services
Affiliate Program
Richard Rost
Free Lessons
Mailing List
Video Tutorials
Learning Connection
Idiot's Guide to Excel
Volume Discounts
Payment Info
Terms of Sale
Contact Info
Support Policy
Email Richard
Mailing Address
Phone Number
Fax Number
Course Survey
Blog RSS Feed    Twitter

YouTube Channel    LinkedIn
Keywords: TechHelp Access soft delete, dont delete, mark inactive, prevent deletion, allow deletions, allow deletes, die, retire, move out of area, referential integrity, cascade deletes, vba, on delete, delete button, me.allowdeletions, inputbox, password, delete   PermaLink