# How to Set Primary Key in MS Access

> To set a primary key in MS Access, go to the Create tab, click Table, and open the table in Design View. Enter your field names and data types, click the row selector for your chosen field, and click the Primary Key button in the Table Design tab. Finally, click Save.

Canonical: https://livedemo.ai/tutorials/how-to-set-primary-key-in-ms-access/
Updated: 2026-10-05
Interactive demo: https://story-api.livedemo.ai/workspaces/62255d3d3304f17b8f5e2d03/stories/692a4dc9ab56e05a00ff97f9/preview?step=1

## 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. That's it! You have set the primary key in MS Access.
8. Click on the 'Save' button.
