{"id":531,"date":"2013-01-26T23:24:28","date_gmt":"2013-01-26T23:24:28","guid":{"rendered":"http:\/\/regina-whipp.com\/blog\/?p=531"},"modified":"2016-01-01T16:13:34","modified_gmt":"2016-01-01T21:13:34","slug":"add-your-report-name-to-page-footer","status":"publish","type":"post","link":"https:\/\/regina-whipp.com\/blog\/?p=531","title":{"rendered":"Add your Report Name to Page Footer&#8230;"},"content":{"rendered":"<p>Put the TEXT box on the Report and in the Control Source put&#8230;<\/p>\n<pre class=\"brush: vb; title: ; notranslate\" title=\"\">\r\n=&#x5B;Name]\r\n<\/pre>\n<p>OR to get the Report Name and the Date\/Time<\/p>\n<pre class=\"brush: vb; title: ; notranslate\" title=\"\">\r\n=&#x5B;Name] &amp; &quot;\u00a0 Printed on\u00a0&quot; &amp; Now()\r\n<\/pre>\n<p>OR to get the Report Name and the Date<\/p>\n<pre class=\"brush: vb; title: ; notranslate\" title=\"\">\r\n=&#x5B;Name] &amp; &quot;\u00a0\u00a0Printed on\u00a0&quot; &amp; Date()\r\n<\/pre>\n<p>&#8230;now if you change the Name of the Report you don&#8217;t have to worry about updating a LABEL, it will do it for you.<\/p>\n<p>Courtesy of <a href=\"http:\/\/www.btabdevelopment.com\/ts\/freetools\" target=\"_blank\">Bob Larson<\/a>, Access MVP (2008, 2009 &amp; 2011)<\/p>\n<p><span style=\"color: #ffffff;\">&#8230;<\/span><\/p>\n<p>In addition, you can also add the RecordSource of your Report&#8230;<br \/>\n(This only works if you use a Naming Convention!)<\/p>\n<pre class=\"brush: vb; title: ; notranslate\" title=\"\">\r\n='(Based on ' &amp; IIf(Left(&#x5B;RecordSource],3)=&quot;tbl&quot;,&quot;Table&quot;,&quot;Query&quot;) &amp; ':\u00a0 &quot;' &amp; &#x5B;RecordSource] &amp; '&quot;)'\r\n<\/pre>\n<p>And another way that takes more then just Tables and Queries into account&#8230;<\/p>\n<pre class=\"brush: vb; title: ; notranslate\" title=\"\">\r\nFunction ObjectType(Source As String) As String\r\n'Courtesy of Hans V Access MVP  from http:\/\/www.eileenslounge.com\/\r\n'Posted in Microsoft Answers on 8.9.2013 http:\/\/answers.microsoft.com\/en-us\/office\/forum\/office_2010-access\/any-code-to-reference-source-of-report-ie-query\/be4a9d5a-cf0f-4f0e-9b8b-01c89b26f70c\r\n     \r\n    Dim varType As Variant&lt;\/strong&gt;\r\n \r\n\u00a0\u00a0\u00a0 varType = DLookup(&quot;Type&quot;, &quot;MSysObjects&quot;, &quot;Name='&quot; &amp; Source &amp; &quot;'&quot;)\r\n\u00a0\u00a0\u00a0 \r\n    If IsNull(varType) Then\r\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 ObjectType = &quot;Error!&quot;\r\n\u00a0\u00a0\u00a0 Else\r\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Select Case varType\r\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Case 1, 4, 6\r\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 ObjectType = &quot;Table&quot;\r\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Case 5\r\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 ObjectType = &quot;Query&quot;\r\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Case Else\r\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 ObjectType = &quot;Other&quot;\r\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 End Select\r\n\u00a0\u00a0\u00a0 End If\r\nEnd Function\r\n<\/pre>\n<div class=\"pvc_clear\"><\/div>\n<p id=\"pvc_stats_531\" class=\"pvc_stats all  \" data-element-id=\"531\" 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:\/\/regina-whipp.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>Put the TEXT box on the Report and in the Control Source put&#8230;<\/p>\n<p> =&#x5B;Name] <\/p>\n<p>OR to get the Report Name and the Date\/Time<\/p>\n<p> =&#x5B;Name] &amp; &quot; Printed on &quot; &amp; Now() <\/p>\n<p>OR to get the Report Name and the Date<\/p>\n<p> =&#x5B;Name] &amp; &quot; Printed on &quot; &amp; Date() <\/p>\n<p>&#8230;now if you change the Name of [&#8230;]<\/p>\n<div class=\"pvc_clear\"><\/div>\n<p id=\"pvc_stats_531\" class=\"pvc_stats all  \" data-element-id=\"531\" 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:\/\/regina-whipp.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":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5,63],"tags":[64,30],"class_list":["post-531","post","type-post","status-publish","format-standard","hentry","category-access-tips","category-database-design","tag-access-tips","tag-reports","odd"],"_links":{"self":[{"href":"https:\/\/regina-whipp.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/531","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/regina-whipp.com\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/regina-whipp.com\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/regina-whipp.com\/blog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/regina-whipp.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=531"}],"version-history":[{"count":14,"href":"https:\/\/regina-whipp.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/531\/revisions"}],"predecessor-version":[{"id":1129,"href":"https:\/\/regina-whipp.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/531\/revisions\/1129"}],"wp:attachment":[{"href":"https:\/\/regina-whipp.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=531"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/regina-whipp.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=531"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/regina-whipp.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=531"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}