LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default 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

 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Retrieve multiple dates, from a week number? stonescar New Users to Excel 1 July 5th 06 05:05 PM
pointing to the full list from a database query Kashgarinn Excel Discussion (Misc queries) 1 February 14th 06 08:04 PM
Macro to copy cells to rows below [email protected] Excel Discussion (Misc queries) 1 January 20th 06 06:59 PM
Macro to insert copied cells [email protected] Excel Discussion (Misc queries) 17 January 18th 06 10:40 AM
user defined function Brian Rogge Excel Worksheet Functions 5 May 23rd 05 06:21 PM


All times are GMT +1. The time now is 11:49 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"