{"id":9710,"date":"2021-12-02T23:27:53","date_gmt":"2021-12-02T23:27:53","guid":{"rendered":"https:\/\/lgildv5i97.onrocket.site\/answers\/?post_type=question&#038;p=9710"},"modified":"2021-12-02T23:29:50","modified_gmt":"2021-12-02T23:29:50","slug":"solved-getting-last-weeks-data-in-access","status":"publish","type":"question","link":"https:\/\/computing.net\/answers\/dbase\/getting-last-weeks-data-in-access\/1448.html","title":{"rendered":"Solved Getting &#8216;Last Week&#8217;s&#8217; Data In Access"},"content":{"rendered":"<p>I need to create a report that will pull back data from &#8216;last week&#8217;, no matter what day of the week management runs it, and management does not want to run a query first so&#8230;.<\/p>\n<p>Using Iff(Format(Date(),&#8221;ddd&#8221;)=&#8221;Mon&#8221;,Date()-3,Date()-1), I&#8217;m able to get &#8216;yesterday&#8217;s&#8217; numbers so there has to be a way to do this with last week or last month or even last year. And remember, management does not want to do anything more than push a button for this.<\/p>\n<p>Help!<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"inline_featured_image":false,"iawp_total_views":9},"question-category":[51],"question_tags":[],"class_list":["post-9710","question","type-question","status-publish","hentry","question-category-dbase"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/computing.net\/answers\/wp-json\/wp\/v2\/question\/9710","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/computing.net\/answers\/wp-json\/wp\/v2\/question"}],"about":[{"href":"https:\/\/computing.net\/answers\/wp-json\/wp\/v2\/types\/question"}],"author":[{"embeddable":true,"href":"https:\/\/computing.net\/answers\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/computing.net\/answers\/wp-json\/wp\/v2\/comments?post=9710"}],"wp:attachment":[{"href":"https:\/\/computing.net\/answers\/wp-json\/wp\/v2\/media?parent=9710"}],"wp:term":[{"taxonomy":"question-category","embeddable":true,"href":"https:\/\/computing.net\/answers\/wp-json\/wp\/v2\/question-category?post=9710"},{"taxonomy":"question_tags","embeddable":true,"href":"https:\/\/computing.net\/answers\/wp-json\/wp\/v2\/question_tags?post=9710"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}