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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

group by week but want to display week start and end dates

Status
Not open for further replies.

scottian

Programmer
Jul 3, 2003
955
GB
im trying to compile a report which offers summary info grouped by week. however i also want to display the start and end dates of the week. i.e
WEEK Dates FROM and TO
week1 1st Jan 7th Jan

Ive tried this in the query:-
MyDateFrom: DMax([MyDate],"qryMyReport",Format([MyDate],'ww\,yyyy')=Format(Now(),'ww\,yyyy'))
MyDateFrom: DMin([MyDate],"qryMyReport",Format([MyDate],'ww\,yyyy')=Format(Now(),'ww\,yyyy'))


but it doesnt do anything. Does anyone know how to do it. Ive checked previous threads but cant seem to find anything even close to what i need.

"My God! It's full of stars...
 
Have you seen (?):

How to determine the First/Last day of a week
faq701-3103
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top