{"id":182,"date":"2014-06-25T00:34:22","date_gmt":"2014-06-25T04:34:22","guid":{"rendered":"http:\/\/access-diva.com\/blog\/?p=182"},"modified":"2016-07-08T21:00:35","modified_gmt":"2016-07-09T01:00:35","slug":"expand-subdatasheets","status":"publish","type":"post","link":"https:\/\/access-diva.com\/blog\/?p=182","title":{"rendered":"Expand SubDatasheets"},"content":{"rendered":"<p>Okay, so we all know I recommend <a href=\"http:\/\/regina-whipp.com\/blog\/?p=102\" target=\"_blank\">turning off the SubDatasheet<\/a>\u00a0but I can see by the Forums they are still quite popular.\u00a0 For those of you that are still using them&#8230;<img loading=\"lazy\" decoding=\"async\" class=\"alignleft wp-image-183 size-full\" src=\"http:\/\/access-diva.com\/blog\/wp-content\/uploads\/2014\/06\/SubDatasheetClosed.png\" alt=\"SubDatasheetClosed\" width=\"92\" height=\"81\" \/><\/p>\n<p>When you first open your Main Form\/Subform (Datasheet View) it opens closed (Little plus signs).\u00a0 This is often quite annoying to Users as they are the ones that have to click all those little plus signs to see the data in the SubDatasheet.\u00a0 So, let&#8217;s fix that!<\/p>\n<p>&nbsp;<\/p>\n<p>In the On_Load event of the Main Form put&#8230;<\/p>\n<p>Private Sub Form_Load()<\/p>\n<pre class=\"brush: vb; title: ; notranslate\" title=\"\">\r\n     With Forms(&quot;YourMainFormName&quot;)\r\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 .SubdatasheetExpanded = True\r\n     End With\r\n<\/pre>\n<p>End Sub<\/p>\n<p>Then the next time you open the Form&#8230;<img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-184 size-full\" src=\"http:\/\/access-diva.com\/blog\/wp-content\/uploads\/2014\/06\/SubDatasheetExpanded.png\" alt=\"SubDatasheetExpanded\" width=\"92\" height=\"166\" srcset=\"https:\/\/access-diva.com\/blog\/wp-content\/uploads\/2014\/06\/SubDatasheetExpanded.png 92w, https:\/\/access-diva.com\/blog\/wp-content\/uploads\/2014\/06\/SubDatasheetExpanded-83x150.png 83w\" sizes=\"auto, (max-width: 92px) 100vw, 92px\" \/>\u00a0 Enjoy!<\/p>\n<p>&nbsp;<\/p>\n<div class=\"pvc_clear\"><\/div>\n<p id=\"pvc_stats_182\" class=\"pvc_stats all  \" data-element-id=\"182\" style=\"\"><i class=\"pvc-stats-icon medium\" aria-hidden=\"true\"><svg aria-hidden=\"true\" focusable=\"false\" data-prefix=\"far\" data-icon=\"chart-bar\" role=\"img\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" viewBox=\"0 0 512 512\" class=\"svg-inline--fa fa-chart-bar fa-w-16 fa-2x\"><path fill=\"currentColor\" d=\"M396.8 352h22.4c6.4 0 12.8-6.4 12.8-12.8V108.8c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v230.4c0 6.4 6.4 12.8 12.8 12.8zm-192 0h22.4c6.4 0 12.8-6.4 12.8-12.8V140.8c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v198.4c0 6.4 6.4 12.8 12.8 12.8zm96 0h22.4c6.4 0 12.8-6.4 12.8-12.8V204.8c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v134.4c0 6.4 6.4 12.8 12.8 12.8zM496 400H48V80c0-8.84-7.16-16-16-16H16C7.16 64 0 71.16 0 80v336c0 17.67 14.33 32 32 32h464c8.84 0 16-7.16 16-16v-16c0-8.84-7.16-16-16-16zm-387.2-48h22.4c6.4 0 12.8-6.4 12.8-12.8v-70.4c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v70.4c0 6.4 6.4 12.8 12.8 12.8z\" class=\"\"><\/path><\/svg><\/i> <img loading=\"lazy\" decoding=\"async\" width=\"16\" height=\"16\" alt=\"Loading\" src=\"https:\/\/access-diva.com\/blog\/wp-content\/plugins\/page-views-count\/ajax-loader-2x.gif\" border=0 \/><\/p>\n<div class=\"pvc_clear\"><\/div>\n","protected":false},"excerpt":{"rendered":"<p>Okay, so we all know I recommend turning off the SubDatasheet but I can see by the Forums they are still quite popular. For those of you that are still using them&#8230;<\/p>\n<p>When you first open your Main Form\/Subform (Datasheet View) it opens closed (Little plus signs). This is often quite annoying to Users as [&#8230;]<\/p>\n<div class=\"pvc_clear\"><\/div>\n<p id=\"pvc_stats_182\" class=\"pvc_stats all  \" data-element-id=\"182\" style=\"\"><i class=\"pvc-stats-icon medium\" aria-hidden=\"true\"><svg aria-hidden=\"true\" focusable=\"false\" data-prefix=\"far\" data-icon=\"chart-bar\" role=\"img\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" viewBox=\"0 0 512 512\" class=\"svg-inline--fa fa-chart-bar fa-w-16 fa-2x\"><path fill=\"currentColor\" d=\"M396.8 352h22.4c6.4 0 12.8-6.4 12.8-12.8V108.8c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v230.4c0 6.4 6.4 12.8 12.8 12.8zm-192 0h22.4c6.4 0 12.8-6.4 12.8-12.8V140.8c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v198.4c0 6.4 6.4 12.8 12.8 12.8zm96 0h22.4c6.4 0 12.8-6.4 12.8-12.8V204.8c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v134.4c0 6.4 6.4 12.8 12.8 12.8zM496 400H48V80c0-8.84-7.16-16-16-16H16C7.16 64 0 71.16 0 80v336c0 17.67 14.33 32 32 32h464c8.84 0 16-7.16 16-16v-16c0-8.84-7.16-16-16-16zm-387.2-48h22.4c6.4 0 12.8-6.4 12.8-12.8v-70.4c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v70.4c0 6.4 6.4 12.8 12.8 12.8z\" class=\"\"><\/path><\/svg><\/i> <img loading=\"lazy\" decoding=\"async\" width=\"16\" height=\"16\" alt=\"Loading\" src=\"https:\/\/access-diva.com\/blog\/wp-content\/plugins\/page-views-count\/ajax-loader-2x.gif\" border=0 \/><\/p>\n<div class=\"pvc_clear\"><\/div>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[71,67,73,28],"tags":[68,22],"class_list":["post-182","post","type-post","status-publish","format-standard","hentry","category-forms","category-subdatasheets","category-subforms","category-tables","tag-subdatasheet","tag-subforms","odd"],"_links":{"self":[{"href":"https:\/\/access-diva.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/182","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/access-diva.com\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/access-diva.com\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/access-diva.com\/blog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/access-diva.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=182"}],"version-history":[{"count":10,"href":"https:\/\/access-diva.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/182\/revisions"}],"predecessor-version":[{"id":381,"href":"https:\/\/access-diva.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/182\/revisions\/381"}],"wp:attachment":[{"href":"https:\/\/access-diva.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=182"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/access-diva.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=182"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/access-diva.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=182"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}