{"id":2813,"date":"2014-05-22T18:54:11","date_gmt":"2014-05-22T16:54:11","guid":{"rendered":"https:\/\/www.itlektor.cz\/?p=2813"},"modified":"2020-09-04T09:11:21","modified_gmt":"2020-09-04T07:11:21","slug":"vytvoreni-nove-tabulky","status":"publish","type":"post","link":"https:\/\/www.itlektor.cz\/en\/vytvoreni-nove-tabulky\/","title":{"rendered":"Setting new table"},"content":{"rendered":"<p><\/p>\n<p style=\"text-align: justify;\">In the created database it is good to start with tables because without them the database does not make sense. In previous article\u00a0you could read how to set up a new database. Now we look at the creation of tables, working again with version 2010. Access is not limited by number of rows in a table, but you can only use\u00a0max. 255 columns. This number is logical, because with relations it is\u00a0rather trying to create smaller tables that can then connect each other. This ensures that there are no unnecessary duplicates and subsequent treatment is more effective.<\/p>\n<p style=\"text-align: justify;\">The recently formed a new Access database, it will offer a new table that we can use. Thus formed table is located in the so-called <strong>Datasheet view<\/strong>. To modify tables there are available two contextual tabs Fields and Table. They can be used\u00a0to create new columns and set their attributes. If this table you do not want to use, just\u00a0close it with a cross in the top right corner and do not save changes.<\/p>\n<figure id=\"attachment_2814\" aria-describedby=\"caption-attachment-2814\" style=\"width: 550px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/www.itlektor.cz\/wp-content\/uploads\/2014\/05\/tab01.png\"><img decoding=\"async\" class=\"size-large wp-image-2814\" src=\"https:\/\/www.itlektor.cz\/wp-content\/uploads\/2014\/05\/tab01-1024x656.png\" alt=\"Tabulka v Accessu\" width=\"550\" height=\"352\" title=\"\" srcset=\"https:\/\/www.itlektor.cz\/wp-content\/uploads\/2014\/05\/tab01-1024x656.png 1024w, https:\/\/www.itlektor.cz\/wp-content\/uploads\/2014\/05\/tab01-300x192.png 300w, https:\/\/www.itlektor.cz\/wp-content\/uploads\/2014\/05\/tab01.png 1204w\" sizes=\"(max-width: 550px) 100vw, 550px\" \/><\/a><figcaption id=\"caption-attachment-2814\" class=\"wp-caption-text\">Table in\u00a0Accessu<\/figcaption><\/figure>\n<p>For our purposes we\u00a0set a new table.<\/p>\n<h1>New table<\/h1>\n<p>We create a new table on Create tab.<\/p>\n<ul>\n<li>Table\u00a0&#8230; creates a table similar to the one that opened after the establishment of a new database<\/li>\n<li>Table design\u00a0&#8230; creates the table and goes straight to Design view<\/li>\n<\/ul>\n<p><strong>Design view<\/strong>\u00a0is also available in older versions. To view the structure and setting fields it seems to me clearer than the Datasheet view.<\/p>\n<figure id=\"attachment_2815\" aria-describedby=\"caption-attachment-2815\" style=\"width: 550px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/www.itlektor.cz\/wp-content\/uploads\/2014\/05\/tab02.png\"><img decoding=\"async\" class=\"size-large wp-image-2815\" src=\"https:\/\/www.itlektor.cz\/wp-content\/uploads\/2014\/05\/tab02-1024x656.png\" alt=\"N\u00e1vrhov\u00e9 zobrazen\u00ed\" width=\"550\" height=\"352\" title=\"\" srcset=\"https:\/\/www.itlektor.cz\/wp-content\/uploads\/2014\/05\/tab02-1024x656.png 1024w, https:\/\/www.itlektor.cz\/wp-content\/uploads\/2014\/05\/tab02-300x192.png 300w, https:\/\/www.itlektor.cz\/wp-content\/uploads\/2014\/05\/tab02.png 1204w\" sizes=\"(max-width: 550px) 100vw, 550px\" \/><\/a><figcaption id=\"caption-attachment-2815\" class=\"wp-caption-text\">Design view<\/figcaption><\/figure>\n<p>In the field <strong>Name<\/strong> column, we define field names.<\/p>\n<p style=\"text-align: justify;\">In the column <strong>Data type we<\/strong> specify the kind of values that we want in the cells of this array. It is necessary that the database table needs to have\u00a0in every cell of the column value of\u00a0the same type, eg. number, text or dates. It&#8217;s also important for subsequent linking tables or creating calculations.<\/p>\n<p style=\"text-align: justify;\">In the Description column can be optionally detailed description of the column that serves rather to understand the content of field for the user or for creating documentation of the database.<\/p>\n<h1>Save the table<\/h1>\n<p style=\"text-align: justify;\">Object designs\u00a0should always be saved. The quickest way is to use a small floppy disk icon on the Quick Access Toolbar on, or in File&gt; Save Object As. Table name may have a maximum of 64 characters and can not contain any special symbols. It&#8217;s good to get used appropriately naming objects and this procedure applied to the entire database. Example of names may be tbl_Orders or tblOrders etc.<\/p>\n<p style=\"text-align: justify;\">If you do not set\u00a0a column as unique so-called<strong>\u00a0primary key<\/strong> before saving, Access asks when saving, whether you want to set it. If not set, but the table contains a field with the type AutoNumber, it will place the key to it. If such does not, the Access itself creates column of the table in the first place and calls it ID. But one can not set the key, and when asked to do select the option that you want to create.<\/p>\n<p style=\"text-align: justify;\">After saving the data in the table you can\u00a0switch\u00a0the view\u00a0by selecting Home&gt; View &gt; Datasheet and begin to fill the cell values.<\/p>\n<p><\/p>\n<!-- AddThis Advanced Settings generic via filter on the_content --><!-- AddThis Share Buttons generic via filter on the_content -->","protected":false},"excerpt":{"rendered":"<p>In the created database it is good to start with tables because without them the database does not make sense. In previous article\u00a0you could read how to set up a new database. Now we look at the creation of tables, working again with version 2010. Access is not limited by number of rows in a [&hellip;]<!-- AddThis Advanced Settings generic via filter on get_the_excerpt --><!-- AddThis Share Buttons generic via filter on get_the_excerpt --><\/p>\n","protected":false},"author":1,"featured_media":2816,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_bbp_topic_count":0,"_bbp_reply_count":0,"_bbp_total_topic_count":0,"_bbp_total_reply_count":0,"_bbp_voice_count":0,"_bbp_anonymous_reply_count":0,"_bbp_topic_count_hidden":0,"_bbp_reply_count_hidden":0,"_bbp_forum_subforum_count":0,"footnotes":""},"categories":[7],"tags":[51,58,50],"_links":{"self":[{"href":"https:\/\/www.itlektor.cz\/en\/wp-json\/wp\/v2\/posts\/2813"}],"collection":[{"href":"https:\/\/www.itlektor.cz\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.itlektor.cz\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.itlektor.cz\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.itlektor.cz\/en\/wp-json\/wp\/v2\/comments?post=2813"}],"version-history":[{"count":0,"href":"https:\/\/www.itlektor.cz\/en\/wp-json\/wp\/v2\/posts\/2813\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.itlektor.cz\/en\/wp-json\/wp\/v2\/media\/2816"}],"wp:attachment":[{"href":"https:\/\/www.itlektor.cz\/en\/wp-json\/wp\/v2\/media?parent=2813"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.itlektor.cz\/en\/wp-json\/wp\/v2\/categories?post=2813"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.itlektor.cz\/en\/wp-json\/wp\/v2\/tags?post=2813"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}