ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Retrieve last full week in MS Query (https://www.excelbanter.com/excel-discussion-misc-queries/103254-retrieve-last-full-week-ms-query.html)

gjack72

Retrieve last full week in MS Query
 

I have a query that I need it to give me data for the last full week.
I have this working in Access but the syntax must be different in
Excel.
I know I could use parameters, but want little intervention from
users.
Anyone show me the correct way.
Using Office 2k, querying DB2 database
Thanks,

Glenn
This is what I use in Access.

Code:
--------------------

((Format([SHARE]![CLOSE_DATE],"wwyy"))=Format(DateAdd('ww',-1,Date()),"wwyy")))

--------------------


--
gjack72
------------------------------------------------------------------------
gjack72's Profile: http://www.excelforum.com/member.php...o&userid=30375
View this thread: http://www.excelforum.com/showthread...hreadid=568456



All times are GMT +1. The time now is 03:42 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com