In this Microsoft Access tutorial I'm going to teach you how to replace a Natural Key, such as a phone number, social security number, product code, etc. with a Surrogate Key (Autonumber).
Stacey from Enfield, Connecticut (a Silver Member) writes: I am planning to replace my primary key of a major table in my database that is in production, with an autonumber as recommended in the Access Expert classes. I will have a lot of relationships to update after the fact. Any advice or tips would be appreciated. I use a number generated by another system, but have to manually enter it. The table is related to a handful of others.
Marko from Valrico, Florida (a Platinum Member) writes: I'm pondering the same exact question. I have a main table with a manual primary key and that drives all my other tables. The primary key is a lot id. It's a permanent id assigned to a piece of property and can never change and I thought I was safe with it; however if I take on more clients there may be issues with the lot id as primary key. The key is set up as an address of 2575 Smith Lane would get a lot id of 2575SL.
BECOME A MEMBER:
RU-vid: / @599cd
or My Site: 599cd.com/THMember
LEARN MORE:
599cd.com/ReplaceNaturalKey
PREREQUISITES:
Relationships: 599cd.com/Relationships
Update Queries: 599cd.com/UpdateQ
LINKS:
AutoNumbers Good or Bad?: 599cd.com/GoodOrBad
Other Autonumber Videos: 599cd.com/AutoNumbers
RECOMMENDED COURSES:
Access Expert 1: 599cd.com/acx1
Relationship Seminar: 599cd.com/RelationshipSeminar
Action Queries: 599cd.com/ActionQuery
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
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
Get on my Mailing List: 599cd.com/YTML
Contact Me: 599cd.com/Contact
TechHelp: 599cd.com/TechHelp
Consulting Help: 599cd.com/DevNet
Twitter: / learningaccess
en.wikipedia.org/wiki/Microso...
products.office.com/en-us/access
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, Natural key, surrogate key, autonumber, primary key, pk, foreign key, fk, replace a natural key with an autonumber
QUESTIONS:
Please feel free to post your questions or comments below. Thanks.
10 май 2023