How to Create a Query to Delete Records that are Missing Related Records in Microsoft Access

Опубликовано: 29 Сентябрь 2024
на канале: Computer Learning Zone
2,886
82

In this Microsoft Access tutorial I'm going to teach you how to create a delete query that can be used to delete records that are missing related records. You will learn about a problem that exists with delete queries that you can't use a JOIN for. We will instead have to use the IN function.

Ethan from Syracuse, New York (a Platinum Member) writes: I am trying to go through my database and delete all orders that don't have any line item details with them. This happens quite often where my sales reps put in orders but don't finish them and don't add line items and now I've got a bunch of basically blank orders in my database.

BECOME A MEMBER:
YouTube:    / @599cd  
or My Site: https://599cd.com/THMember

LEARN MORE:
https://599cd.com/DeleteQueryJoin

PREREQUISITES:
Invoicing: https://599cd.com/Invoicing
Relationships: https://599cd.com/Relationships
Outer Joins: https://599cd.com/OuterJoin
Delete Queries: https://599cd.com/Delete
SQL with Access: https://599cd.com/SQLwithAccess

LINKS:
Null: https://599cd.com/Null

RECOMMENDED COURSES:
Access SQL Seminar Part 1: https://599cd.com/SQL1

FREE TEMPLATE DOWNLOADS:
TechHelp Free Templates: https://599cd.com/THFree
Blank Template: https://599cd.com/Blank
Contact Management: https://599cd.com/Contacts
Order Entry & Invoicing: https://599cd.com/Invoicing
More Access Templates: https://599cd.com/AccessTemplates

ADDITIONAL RESOURCES:
FREE Access Beginner Level 1: https://599cd.com/Free1
How to Use Access in 30 Minutes: https://599cd.com/30Minutes
$1 Access Level 2: https://599cd.com/1Dollar
Donate to my Tip Jar: https://599cd.com/TipJar
Get on my Mailing List: https://599cd.com/YTML
Contact Me: https://599cd.com/Contact
TechHelp: https://599cd.com/TechHelp
Consulting Help: https://599cd.com/DevNet
Twitter:   / learningaccess  
https://en.wikipedia.org/wiki/Microso...
https://products.office.com/en-us/access
https://microsoft.com/en-us/microsoft...

KEYWORDS:
access 2016, access 2019, access 2021, access 365, microsoft access, ms access, ms access tutorial, #msaccess, #microsoftaccess, #help, #howto, #tutorial, #learn, #lesson, #training, #database, Delete query, could not delete from specified tables, specify the table containing the records you want to delete, delete query multiple tables

QUESTIONS:
Please feel free to post your questions or comments below. Thanks.