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 Set Primary Key in MS Access

Updated on:
May 12, 2026
By:
Madhav Bhandari
Use this interactive demo to learn how to define a primary key field in Microsoft Access.

Quick summary

Setting a primary key in MS Access ensures each record in a table is uniquely identified, which is essential for maintaining data integrity and enabling reliable table relationships. You can assign a primary key directly in Design View using the Primary Key button on the Table Design ribbon.


Steps

  1. Go to the Create tab on the ribbon.
  2. Click Table to create a new table.
  3. Open the table in Design View.
  4. Enter the field names and data types in the design grid.
  5. Click the row selector for the field you want to set as the primary key.
  6. Click the Primary Key button in the Table Design tab on the ribbon.
  7. Confirm the primary key has been set successfully.
  8. Click the Save button to save your table.

📌 Why this matters

Setting a primary key in MS Access is a foundational database skill that ensures every record in a table is uniquely identifiable, preventing duplicate entries and data conflicts. A properly defined primary key enables MS Access to enforce referential integrity across related tables, making your database more reliable and easier to query. Without a primary key, relationships between tables cannot be established correctly, which can lead to inaccurate reports and broken queries. This tutorial is especially valuable for students, developers, and data professionals who are building or managing relational databases in Microsoft Access.
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
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