{"id":3077,"date":"2019-12-23T16:35:56","date_gmt":"2019-12-23T16:35:56","guid":{"rendered":"https:\/\/courses.lumenlearning.com\/wm-computerapplicationsmgrs\/?post_type=chapter&#038;p=3077"},"modified":"2024-05-17T00:18:44","modified_gmt":"2024-05-17T00:18:44","slug":"set-a-primary-key","status":"publish","type":"chapter","link":"https:\/\/courses.lumenlearning.com\/wm-computerapplicationsmgrs-2\/chapter\/set-a-primary-key\/","title":{"raw":"Set a Primary Key","rendered":"Set a Primary Key"},"content":{"raw":"<div class=\"textbox learning-objectives\">\r\n<h3>Learning Outcomes<\/h3>\r\n<ul>\r\n \t<li>Set the primary key<\/li>\r\n<\/ul>\r\n<\/div>\r\nA primary key can be set for a table in one of three ways. Open a table in Design view and:\r\n<ul>\r\n \t<li style=\"font-weight: 400;\">With the field to be used as the primary key selected, click the Primary Key button key in the Tools group.<\/li>\r\n \t<li style=\"font-weight: 400;\">Right-click the appropriate field and choose Primary Key from the shortcut menu.<\/li>\r\n \t<li style=\"font-weight: 400;\">Allow Access to automatically create the primary key by simply saving the table.<\/li>\r\n<\/ul>\r\nIn this example, Field One was highlighted and <strong>Primary Key<\/strong> was selected in the Menu bar to designate it as the Primary Key.\r\n\r\n<img class=\"aligncenter wp-image-3628\" src=\"https:\/\/s3-us-west-2.amazonaws.com\/courses-images\/wp-content\/uploads\/sites\/3008\/2019\/12\/15221100\/2-Set-a-Primary-Key-300x196.jpg\" alt=\"Microsoft Access screenshot showing Field One highlighted and Primary Key selected in the menu bar.\" width=\"386\" height=\"252\" \/>\r\n<div class=\"textbox tryit\">\r\n<h3>Practice Question<\/h3>\r\nhttps:\/\/assess.lumenlearning.com\/practice\/210fc686-3ffc-4fda-aed6-73466b31bcff\r\n<\/div>","rendered":"<div class=\"textbox learning-objectives\">\n<h3>Learning Outcomes<\/h3>\n<ul>\n<li>Set the primary key<\/li>\n<\/ul>\n<\/div>\n<p>A primary key can be set for a table in one of three ways. Open a table in Design view and:<\/p>\n<ul>\n<li style=\"font-weight: 400;\">With the field to be used as the primary key selected, click the Primary Key button key in the Tools group.<\/li>\n<li style=\"font-weight: 400;\">Right-click the appropriate field and choose Primary Key from the shortcut menu.<\/li>\n<li style=\"font-weight: 400;\">Allow Access to automatically create the primary key by simply saving the table.<\/li>\n<\/ul>\n<p>In this example, Field One was highlighted and <strong>Primary Key<\/strong> was selected in the Menu bar to designate it as the Primary Key.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-3628\" src=\"https:\/\/s3-us-west-2.amazonaws.com\/courses-images\/wp-content\/uploads\/sites\/3008\/2019\/12\/15221100\/2-Set-a-Primary-Key-300x196.jpg\" alt=\"Microsoft Access screenshot showing Field One highlighted and Primary Key selected in the menu bar.\" width=\"386\" height=\"252\" \/><\/p>\n<div class=\"textbox tryit\">\n<h3>Practice Question<\/h3>\n<p>\t<iframe id=\"assessment_practice_210fc686-3ffc-4fda-aed6-73466b31bcff\" class=\"resizable\" src=\"https:\/\/assess.lumenlearning.com\/practice\/210fc686-3ffc-4fda-aed6-73466b31bcff?iframe_resize_id=assessment_practice_id_210fc686-3ffc-4fda-aed6-73466b31bcff\" frameborder=\"0\" style=\"border:none;width:100%;height:100%;min-height:300px;\"><br \/>\n\t<\/iframe>\n<\/div>\n\n\t\t\t <section class=\"citations-section\" role=\"contentinfo\">\n\t\t\t <h3>Candela Citations<\/h3>\n\t\t\t\t\t <div>\n\t\t\t\t\t\t <div id=\"citation-list-3077\">\n\t\t\t\t\t\t\t <div class=\"licensing\"><div class=\"license-attribution-dropdown-subheading\">CC licensed content, Original<\/div><ul class=\"citation-list\"><li>Set a Primary Key. <strong>Authored by<\/strong>: Robert Danielson. <strong>Provided by<\/strong>: Lumen Learning. <strong>License<\/strong>: <em><a target=\"_blank\" rel=\"license\" href=\"https:\/\/creativecommons.org\/licenses\/by\/4.0\/\">CC BY: Attribution<\/a><\/em><\/li><\/ul><\/div>\n\t\t\t\t\t\t <\/div>\n\t\t\t\t\t <\/div>\n\t\t\t <\/section>","protected":false},"author":17,"menu_order":11,"template":"","meta":{"_candela_citation":"[{\"type\":\"original\",\"description\":\"Set a Primary Key\",\"author\":\"Robert Danielson\",\"organization\":\"Lumen Learning\",\"url\":\"\",\"project\":\"\",\"license\":\"cc-by\",\"license_terms\":\"\"}]","CANDELA_OUTCOMES_GUID":"fbd6cb5f-37ad-45c5-86e2-2f78d3eaf9d8, 36520273-8a11-437e-9a78-93f418822c07","pb_show_title":"on","pb_short_title":"","pb_subtitle":"","pb_authors":[],"pb_section_license":""},"chapter-type":[],"contributor":[],"license":[],"class_list":["post-3077","chapter","type-chapter","status-publish","hentry"],"part":2773,"_links":{"self":[{"href":"https:\/\/courses.lumenlearning.com\/wm-computerapplicationsmgrs-2\/wp-json\/pressbooks\/v2\/chapters\/3077","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/courses.lumenlearning.com\/wm-computerapplicationsmgrs-2\/wp-json\/pressbooks\/v2\/chapters"}],"about":[{"href":"https:\/\/courses.lumenlearning.com\/wm-computerapplicationsmgrs-2\/wp-json\/wp\/v2\/types\/chapter"}],"author":[{"embeddable":true,"href":"https:\/\/courses.lumenlearning.com\/wm-computerapplicationsmgrs-2\/wp-json\/wp\/v2\/users\/17"}],"version-history":[{"count":15,"href":"https:\/\/courses.lumenlearning.com\/wm-computerapplicationsmgrs-2\/wp-json\/pressbooks\/v2\/chapters\/3077\/revisions"}],"predecessor-version":[{"id":5941,"href":"https:\/\/courses.lumenlearning.com\/wm-computerapplicationsmgrs-2\/wp-json\/pressbooks\/v2\/chapters\/3077\/revisions\/5941"}],"part":[{"href":"https:\/\/courses.lumenlearning.com\/wm-computerapplicationsmgrs-2\/wp-json\/pressbooks\/v2\/parts\/2773"}],"metadata":[{"href":"https:\/\/courses.lumenlearning.com\/wm-computerapplicationsmgrs-2\/wp-json\/pressbooks\/v2\/chapters\/3077\/metadata\/"}],"wp:attachment":[{"href":"https:\/\/courses.lumenlearning.com\/wm-computerapplicationsmgrs-2\/wp-json\/wp\/v2\/media?parent=3077"}],"wp:term":[{"taxonomy":"chapter-type","embeddable":true,"href":"https:\/\/courses.lumenlearning.com\/wm-computerapplicationsmgrs-2\/wp-json\/pressbooks\/v2\/chapter-type?post=3077"},{"taxonomy":"contributor","embeddable":true,"href":"https:\/\/courses.lumenlearning.com\/wm-computerapplicationsmgrs-2\/wp-json\/wp\/v2\/contributor?post=3077"},{"taxonomy":"license","embeddable":true,"href":"https:\/\/courses.lumenlearning.com\/wm-computerapplicationsmgrs-2\/wp-json\/wp\/v2\/license?post=3077"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}