This interactive demo was created free with Storylane in 2 minutes. Create your own demo
This interactive demo was created free with Storylane in 2 minutes. Create your own demo
Start free
All Tutorials /MS Access

How to Add Foreign Key in MS Access

Updated on:
May 12, 2026
By:
Madhav Bhandari
Use this interactive demo to learn how to create a foreign key relationship between tables in MS Access.

Quick summary

Adding a foreign key in Microsoft Access links two tables through the Relationships tool, enforcing referential integrity so child records always match a valid parent entry. This step-by-step process uses the Database Tools ribbon to define and save table relationships without writing any SQL.


Steps

  1. Launch Microsoft Access and open the database where you want to add the foreign key, ensuring you have two tables ready.
  2. Go to the Database Tools tab in the ribbon.
  3. Click on Relationships to open the Relationships window.
  4. In the Relationships window, add both the parent and child tables by clicking Add Selected Tables.
  5. Drag the primary key field from the parent table and drop it onto the corresponding field in the child table.
  6. When the Edit Relationships dialog box appears, verify that the fields match correctly.
  7. Select Enforce Referential Integrity to prevent invalid entries in the child table that don't exist in the parent table.
  8. Click Create to establish the relationship.
  9. Click Save to save the relationships and finalize the foreign key configuration.

📌 Why this matters

Setting up a foreign key in Microsoft Access is essential for maintaining data integrity across related tables in a relational database. By enforcing referential integrity through the Relationships tool, Access prevents orphaned records and ensures consistent, reliable data across your database. This built-in visual approach eliminates the need for manual SQL scripting, making it accessible for database administrators and non-technical users alike. Proper foreign key constraints are a foundational best practice for any structured Access database managing linked datasets.
Your product deserves an interactive demo
Start free
Similar Articles
MS Access

How to Integrate a Microsoft Excel Database with Excel

Madhav Bhandari
Director of Marketing @ Storylane
MS Access

How to Integrate Google Calendar with an MS Access Database

Madhav Bhandari
Director of Marketing @ Storylane
MS Access

How to Integrate Google Sheets with an MS Access Database

Madhav Bhandari
Director of Marketing @ Storylane
No items found.
Platform
Interactive Demos
Sandbox Demos
Buyer Hub
RepX
Integrations
Solutions
Product Marketers
Growth & Demand Gen
Sales Reps & AEs
Presales & SEs
Customer Success
Product Managers
Customers
Demo Showcase
Customer Stories
Finer Demos Club
Features
Demo Signals
Personalization
Deal Intelligence
Resources
Blog
The Plot
Tutorials
Events & webinars
Help Docs
What’s New
Demo Dundies
Company
Careers
Pricing
Partners
Contact
Trust Center
Backed by
Chrome Extension Icon
Chrome extension
Download
Desktop app
Download
Built in San Francisco Bay Area - ©2026 Storylane
Privacy PolicyTerms & Conditions
X Corp (formerly Twitter)LinkedIn
This website uses cookies to ensure you get the best experience on our website. Learn More
Got it
This website uses cookies to ensure you get the best experience on our website. Learn More
Got it