---
title: "how to create primary key in access database."  
description: "how to create primary key in access database."  
author: "Anonymous User"  
published: 2020-07-16  
updated: 2020-07-16  
canonical: https://www.mindstick.com/forum/156007/how-to-create-primary-key-in-access-database  
category: "database"  
tags: ["database", "access"]  
reading_time: 1 minute  

---

# how to create primary key in access database.

hi guys i have a [simple](https://yourviews.mindstick.com/story/1469/5-simple-ways-to-stay-fit-amp-healthy) [project](https://www.mindstick.com/articles/105927/how-to-excel-at-managing-multiple-projects) and there are used [access database](https://www.mindstick.com/forum/385/access-database-datatype-problem). but [now](https://yourviews.mindstick.com/view/81402/it-s-liberals-vs-progressives-in-us-politics-now) i need to add [primary key](https://www.mindstick.com/blog/214/primary-key) in my access [database table](https://www.mindstick.com/forum/159366/how-to-test-regular-expressions-in-sql-without-using-database-table). please [guide](https://www.mindstick.com/articles/44463/business-to-business-vat-reclaiming-a-guide-for-your-employees) me how to create primary key in access database table.

thanks.

## Replies

### Reply by Anonymous User

**Add a field as a [primary](https://www.mindstick.com/forum/33739/difference-between-primary-key-and-unique-key) key**

**1.** Open MS [Access](https://www.mindstick.com/articles/12994/how-foreigners-can-access-blocked-websites-in-china) and select the Blank Desktop [database](https://www.mindstick.com/articles/12226/use-of-database-in-sencha-extjs-and-insert-record-from-user-form-using-ajax).

## See below image ->

![how to create primary key in access database.](https://www.mindstick.com/mindstickforums/a888ba9b-0ea3-48dc-aba2-0ed945fac9e4/images/98cd354f-8092-42bb-bd6f-1482bb7b3dee.jpeg)\

**2.** after clicking the Blank Desktop database a popup will be open.

## See below image ->

![how to create primary key in access database.](https://www.mindstick.com/mindstickforums/a888ba9b-0ea3-48dc-aba2-0ed945fac9e4/images/e0bd0bbb-68ed-464d-87f0-744b2859d4da.jpeg)

**3.** In the Navigation Pane, right-click the table and click Design View. \

![how to create primary key in access database.](https://www.mindstick.com/mindstickforums/a888ba9b-0ea3-48dc-aba2-0ed945fac9e4/images/f9a547b3-5f15-487c-8109-822b62b64a7c.jpeg)

**4.** now select the column to which you want to add the primary key and click the primary key button. \

## see below image->

![how to create primary key in access database.](https://www.mindstick.com/mindstickforums/a888ba9b-0ea3-48dc-aba2-0ed945fac9e4/images/bc817dd2-d83c-42d4-a7d1-5e504f09d767.jpeg) **\**

## \

i hope it will help to you


---

Original Source: https://www.mindstick.com/forum/156007/how-to-create-primary-key-in-access-database

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
