Uploaded October 2026 | Updated November 2026, 10 hours ago
In this lesson, we will show you how to capture the new record ID created by Microsoft Access VBA using a recordset and AddNew. You will learn why relying on the highest ID can select another user's record in a multi-user database, how to return an AutoNumber ID from a function, and how to use that ID to find and focus on the exact record your code just added.
Sophia from Porto, Portugal (a Gold Member) asks How can I get the ID of the record my code just created without accidentally selecting another user's record?
CHAPTERS:
00:00 Introduction
01:14 Why Capture the New Record ID
02:48 Prerequisites
03:13 Adding a Record With a Recordset
03:50 Returning the New AutoNumber ID
04:52 Finding the Newly Added Record
05:58 Conclusion
06:50 Recommended Videos
BECOME A MEMBER:
YouTube: youtube.com/channel/UCl7-jJie4ifOVK87FINIuDg/join
or My Site: 599cd.com/THMember
LEARN MORE:
New Record ID: 599cd.com/NewRecordID
PREREQUISITES:
Intro to VBA: 599cd.com/IntroVBA
Recordsets: 599cd.com/Recordsets
LINKS:
Fitness Database Series: 599cd.com/Fitness
Fitness Part 31: 599cd.com/3691
Create a Function: 599cd.com/CreateFunction
RECOMMENDED COURSES:
Access Developer Level 16: 599cd.com/ACD16
FREE TEMPLATE DOWNLOADS:
TechHelp Free Templates: 599cd.com/THFree
Blank Template: 599cd.com/Blank
Contact Management: 599cd.com/Contacts
Order Entry & Invoicing: 599cd.com/Invoicing
More Access Templates: 599cd.com/AccessTemplates
DIAMOND SPONSORS:
More info on our Sponsors: 599cd.com/DiamondSponsors
ADDITIONAL RESOURCES:
FREE Access Beginner Level 1: 599cd.com/Free1
How to Use Access in 30 Minutes: 599cd.com/30Minutes
$1 Access Level 2: 599cd.com/1Dollar
Donate to my Tip Jar: 599cd.com/TipJar
Merch Store! Get your swag here: 599cd.com/Merch
Get on my Mailing List: 599cd.com/YTML
Contact Me: 599cd.com/Contact
TechHelp: 599cd.com/TechHelp
Consulting Help: 599cd.com/DevNet
Twitter: twitter.com/LearningAccess
en.wikipedia.org/wiki/Microsoft_Access
products.office.com/en-us/access
microsoft.com/en-us/microsoft-365/blog/access
KEYWORDS:
TechHelp, Access 2016, Access 2019, Access 2021, Access 2024, Access 365, Microsoft Access, MS Access, MS Access Tutorial, #msaccess, #microsoftaccess, #help, #howto, #tutorial, #learn, #lesson, #training, #database, Access VBA get newly added record ID, VBA AutoNumber ID after AddNew, DAO recordset AddNew AutoNumber, return ID from VBA function, Recordset FindFirst by ID, multi-user database record ID, open newly created record
QUESTIONS:
Please feel free to post your questions or comments below. Thanks.
Live long, and prosper.
In this lesson, we will show you how to capture the new record ID created by Microsoft Access VBA using a recordset and AddNew. You will learn why relying on the highest ID can select another user's record in a multi-user database, how to return an AutoNumber ID from a function, and how to use that ID to find and focus on the exact record your code just added.
Sophia from Porto, Portugal (a Gold Member) asks How can I get the ID of the record my code just created without accidentally selecting another user's record?
CHAPTERS:
00:00 Introduction
01:14 Why Capture the New Record ID
02:48 Prerequisites
03:13 Adding a Record With a Recordset
03:50 Returning the New AutoNumber ID
04:52 Finding the Newly Added Record
05:58 Conclusion
06:50 Recommended Videos
BECOME A MEMBER:
YouTube: youtube.com/channel/UCl7-jJie4ifOVK87FINIuDg/join
or My Site: 599cd.com/THMember
LEARN MORE:
New Record ID: 599cd.com/NewRecordID
PREREQUISITES:
Intro to VBA: 599cd.com/IntroVBA
Recordsets: 599cd.com/Recordsets
LINKS:
Fitness Database Series: 599cd.com/Fitness
Fitness Part 31: 599cd.com/3691
Create a Function: 599cd.com/CreateFunction
RECOMMENDED COURSES:
Access Developer Level 16: 599cd.com/ACD16
FREE TEMPLATE DOWNLOADS:
TechHelp Free Templates: 599cd.com/THFree
Blank Template: 599cd.com/Blank
Contact Management: 599cd.com/Contacts
Order Entry & Invoicing: 599cd.com/Invoicing
More Access Templates: 599cd.com/AccessTemplates
DIAMOND SPONSORS:
More info on our Sponsors: 599cd.com/DiamondSponsors
ADDITIONAL RESOURCES:
FREE Access Beginner Level 1: 599cd.com/Free1
How to Use Access in 30 Minutes: 599cd.com/30Minutes
$1 Access Level 2: 599cd.com/1Dollar
Donate to my Tip Jar: 599cd.com/TipJar
Merch Store! Get your swag here: 599cd.com/Merch
Get on my Mailing List: 599cd.com/YTML
Contact Me: 599cd.com/Contact
TechHelp: 599cd.com/TechHelp
Consulting Help: 599cd.com/DevNet
Twitter: twitter.com/LearningAccess
en.wikipedia.org/wiki/Microsoft_Access
products.office.com/en-us/access
microsoft.com/en-us/microsoft-365/blog/access
KEYWORDS:
TechHelp, Access 2016, Access 2019, Access 2021, Access 2024, Access 365, Microsoft Access, MS Access, MS Access Tutorial, #msaccess, #microsoftaccess, #help, #howto, #tutorial, #learn, #lesson, #training, #database, Access VBA get newly added record ID, VBA AutoNumber ID after AddNew, DAO recordset AddNew AutoNumber, return ID from VBA function, Recordset FindFirst by ID, multi-user database record ID, open newly created record
QUESTIONS:
Please feel free to post your questions or comments below. Thanks.
Live long, and prosper.










