{"id":328,"date":"2022-12-01T20:32:32","date_gmt":"2022-12-01T20:32:32","guid":{"rendered":"https:\/\/courses.lumenlearning.com\/suny-compappmgr\/chapter\/set-a-primary-key\/"},"modified":"2022-12-01T20:32:32","modified_gmt":"2022-12-01T20:32:32","slug":"set-a-primary-key","status":"publish","type":"chapter","link":"https:\/\/courses.lumenlearning.com\/suny-compappmgr\/chapter\/set-a-primary-key\/","title":{"raw":"Set a Primary Key","rendered":"Set a Primary Key"},"content":{"raw":"\n<div class=\"textbox learning-objectives\">\n<h3>Learning Outcomes<\/h3>\n<ul>\n \t<li>Set the primary key<\/li>\n<\/ul>\n<\/div>\nA primary key can be set for a table in one of three ways. Open a table in Design view and:\n<ul>\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>\n \t<li style=\"font-weight: 400;\">Right-click the appropriate field and choose Primary Key from the shortcut menu.<\/li>\n \t<li style=\"font-weight: 400;\">Allow Access to automatically create the primary key by simply saving the table.<\/li>\n<\/ul>\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.\n\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\">\n<div class=\"textbox tryit\">\n<h3>Practice Question<\/h3>\nhttps:\/\/assess.lumenlearning.com\/practice\/210fc686-3ffc-4fda-aed6-73466b31bcff\n\n<\/div>\n<h2>Contribute!<\/h2><div style=\"margin-bottom: 8px;\">Did you have an idea for improving this content? We\u2019d love your input.<\/div><a href=\"https:\/\/docs.google.com\/document\/d\/1VKKeIdeJg6Fg1EXvG9DsMeQFoANccCAM_IjZPHGhU6Q\" target=\"_blank\" style=\"font-size: 10pt; font-weight: 600; color: #077fab; text-decoration: none; border: 2px solid #077fab; border-radius: 7px; padding: 5px 25px; text-align: center; cursor: pointer; line-height: 1.5em;\">Improve this page<\/a><a style=\"margin-left: 16px;\" target=\"_blank\" href=\"https:\/\/docs.google.com\/document\/d\/1vy-T6DtTF-BbMfpVEI7VP_R7w2A4anzYZLXR8Pk4Fu4\">Learn More<\/a>\n","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><\/p>\n<\/div>\n<h2>Contribute!<\/h2>\n<div style=\"margin-bottom: 8px;\">Did you have an idea for improving this content? We\u2019d love your input.<\/div>\n<p><a href=\"https:\/\/docs.google.com\/document\/d\/1VKKeIdeJg6Fg1EXvG9DsMeQFoANccCAM_IjZPHGhU6Q\" target=\"_blank\" style=\"font-size: 10pt; font-weight: 600; color: #077fab; text-decoration: none; border: 2px solid #077fab; border-radius: 7px; padding: 5px 25px; text-align: center; cursor: pointer; line-height: 1.5em;\">Improve this page<\/a><a style=\"margin-left: 16px;\" target=\"_blank\" href=\"https:\/\/docs.google.com\/document\/d\/1vy-T6DtTF-BbMfpVEI7VP_R7w2A4anzYZLXR8Pk4Fu4\">Learn More<\/a><\/p>\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-328\">\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":503070,"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-328","chapter","type-chapter","status-publish","hentry"],"part":317,"_links":{"self":[{"href":"https:\/\/courses.lumenlearning.com\/suny-compappmgr\/wp-json\/pressbooks\/v2\/chapters\/328","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/courses.lumenlearning.com\/suny-compappmgr\/wp-json\/pressbooks\/v2\/chapters"}],"about":[{"href":"https:\/\/courses.lumenlearning.com\/suny-compappmgr\/wp-json\/wp\/v2\/types\/chapter"}],"author":[{"embeddable":true,"href":"https:\/\/courses.lumenlearning.com\/suny-compappmgr\/wp-json\/wp\/v2\/users\/503070"}],"version-history":[{"count":0,"href":"https:\/\/courses.lumenlearning.com\/suny-compappmgr\/wp-json\/pressbooks\/v2\/chapters\/328\/revisions"}],"part":[{"href":"https:\/\/courses.lumenlearning.com\/suny-compappmgr\/wp-json\/pressbooks\/v2\/parts\/317"}],"metadata":[{"href":"https:\/\/courses.lumenlearning.com\/suny-compappmgr\/wp-json\/pressbooks\/v2\/chapters\/328\/metadata\/"}],"wp:attachment":[{"href":"https:\/\/courses.lumenlearning.com\/suny-compappmgr\/wp-json\/wp\/v2\/media?parent=328"}],"wp:term":[{"taxonomy":"chapter-type","embeddable":true,"href":"https:\/\/courses.lumenlearning.com\/suny-compappmgr\/wp-json\/pressbooks\/v2\/chapter-type?post=328"},{"taxonomy":"contributor","embeddable":true,"href":"https:\/\/courses.lumenlearning.com\/suny-compappmgr\/wp-json\/wp\/v2\/contributor?post=328"},{"taxonomy":"license","embeddable":true,"href":"https:\/\/courses.lumenlearning.com\/suny-compappmgr\/wp-json\/wp\/v2\/license?post=328"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}