---
title: "How do you set two primary keys in access?"  
description: "How do you set two primary keys in access?"  
author: "Anonymous User"  
published: 2020-07-16  
updated: 2020-07-16  
canonical: https://www.mindstick.com/forum/156008/how-do-you-set-two-primary-keys-in-access  
category: "ms access"  
tags: ["database", "ms access", "database design"]  
reading_time: 1 minute  

---

# How do you set two primary keys in access?

hi [friends](https://answers.mindstick.com/qa/31396/where-did-the-suggest-to-friends-feature-go) i am a junior [developer](https://www.mindstick.com/articles/157260/variation-between-web-designer-and-web-developer) i have assigned a [project](https://www.mindstick.com/articles/105927/how-to-excel-at-managing-multiple-projects) by my [team leader](https://www.mindstick.com/forum/157606/how-can-you-effectively-handle-a-bulk-team-of-employees-under-you-as-a-team-leader). in this project use ms [access database](https://www.mindstick.com/forum/385/access-database-datatype-problem) and i need to set two column [primary keys](https://answers.mindstick.com/qa/30985/what-are-primary-keys-and-foreign-keys) in a table . please help me any one .

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

**1.** Open [MS Access](https://answers.mindstick.com/qa/96635/explain-about-the-various-features-present-in-ms-access) 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 do you set two primary keys in access?](https://www.mindstick.com/mindstickforums/70cf7977-4b83-4c0f-92bb-701ca5b5af6a/images/990ec9cb-fb1e-4ff9-b322-579fcf4e63d2.jpeg) **\**

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

## See below image ->

![How do you set two primary keys in access?](https://www.mindstick.com/mindstickforums/70cf7977-4b83-4c0f-92bb-701ca5b5af6a/images/be0e35fa-98f9-4c2e-9672-a6f227b5ec56.jpeg) **\**

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

## see below image->

![How do you set two primary keys in access?](https://www.mindstick.com/mindstickforums/70cf7977-4b83-4c0f-92bb-701ca5b5af6a/images/1113a191-39d5-4571-ac15-a1f8e28cc20a.jpeg) **\**

**4.** Now select two-column to which you want to add the primary key and click the primary key button.

## See below image->

![How do you set two primary keys in access?](https://www.mindstick.com/mindstickforums/70cf7977-4b83-4c0f-92bb-701ca5b5af6a/images/761704fc-7666-4041-8479-b19161c752a1.jpeg) **\**

## \

I hope it will help to you.


---

Original Source: https://www.mindstick.com/forum/156008/how-do-you-set-two-primary-keys-in-access

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
