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
- Go to the Create tab on the ribbon.
- Click Table to create a new table.
- Open the table in Design View.
- Enter the field names and data types in the design grid.
- Click the row selector for the field you want to set as the primary key.
- Click the Primary Key button in the Table Design tab on the ribbon.
- Confirm the primary key has been set successfully.
- Click the Save button to save your table.



