Free Lessons
Courses
Seminars
TechHelp
Fast Tips
Templates
Topic Index
Forum
ABCD
 
Home   Courses   Templates   Seminars   TechHelp   Forums   Help   Contact   Join   Order   Logon  
 
Home > TechHelp > Directory > Access > Do Records Exist? < Edit Mode 2 | Character Word Substitutions >
Do Records Exist?
By Richard Rost   Richard Rost on LinkedIn Email Richard Rost   30 days ago

DLookup v DCount v Recordset: Check if Records Exist


 S  M  L  XL  FS  |  Slo  Reg  Fast  2x  |  Bookmark Join Now

In this Microsoft Access tutorial, I will show you how to check if records exist in your database using three different methods: DCount, DLookup, and the recordset approach. You will see how each method works, compare their speed and efficiency, and learn best practices for determining if related records, like customer orders, are present. I will also explain why using domain functions in queries can be slow, and demonstrate faster alternatives with aggregate queries.

Richard from Concord, North Carolina (a Silver Member) asks: I'm deleting a record in my main table, but there are two supporting tables associated with the main record that could have data associated with that record. I wrote this, and it seems to work well enough, but my concern is if it is good code or not.

Members

In the extended cut, we will create our own Dexist function using the fast recordset technique. I will show you how to turn it into a reusable function that returns a true or false value based on whether records exist for the criteria you pass it, just like Dlookup and Dcount.

Silver Members and up get access to view Extended Cut videos, when available. Gold Members can download the files from class plus get access to the Code Vault. If you're not a member, Join Today!

Prerequisites

Links

Recommended Courses

Learn More

FREE Access Beginner Level 1
FREE Access Quick Start in 30 Minutes
Access Level 2 for just $1

Free Templates

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

Resources

Diamond Sponsors - Information on our Sponsors
Mailing List - Get emails when new videos released
Consulting - Need help with your database
Tip Jar - Your tips are graciously accepted
Merch Store - Get your swag here!

Questions?

Please feel free to post your questions or comments below or post them in the Forums.

KeywordsDo Records Exist? in Microsoft Access

TechHelp Access, DLookup vs DCount, check if record exists VBA, recordset exists check, compare DLookup DCount recordset, fastest way check if record exists, DCount performance, DLookup performance, NZ function VBA, developer-level VBA lesson, SQL WHERE clause VBA, dbOpenSnapshot, aggregate queries, avoid domain functions in queries, count related records VBA, own de-exist function

 

 

 

Comments for Do Records Exist?
 
Age Subject From
31 daysTranscriptRichard Rost
31 daysQuizRichard Rost
21 daysYes BossJason Fleishman
30 daysPut to Good UseScott Carlson
30 daysMore Code for My Access Reference LibrarySam Domino

 

Start a NEW Conversation
 
Only students may post on this page. Click here for more information on how you can set up an account. If you are a student, please Log On first. Non-students may only post in the Visitor Forum.
 
Subscribe
Subscribe to Do Records Exist?
Get notifications when this page is updated
 
 
 
 

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: 5/23/2025 1:01:23 PM. PLT: 4s
Keywords: TechHelp Access, DLookup vs DCount, check if record exists VBA, recordset exists check, compare DLookup DCount recordset, fastest way check if record exists, DCount performance, DLookup performance, NZ function VBA, developer-level VBA lesson, SQL WHERE c  PermaLink  Do Records Exist? in Microsoft Access