Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations John Tel on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

when grouping data as weeks, show title as first day of the week! 1

Status
Not open for further replies.
May 24, 2005
30
US
I have a question need help,
I can group the data as weeks, but the title shows as "number", I want it shows like the first day of the week.

for example: today is 05/24, yesterday is 05/23, the first day of this week is Sunday, 05/22. so when I group by week, today and yesterday will be grouped together and shows as 05/22!

you help will be highly appreciated!

Jeffery
 
SELECT [Date Field]-DatePart("w",[Date Field])+1 AS [Week]
...
GROUP BY [Date Field]-DatePart("w",[Date Field])+1;

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ181-2886
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top