
Signature
Duane Hookom
MS Access MVP
Grouping Week with a Date Value, ie 5/18/05.
Sorry for the confusion. Really what I need to know is if Access can take
any date, let's say "5/18/05" and return the Week that day falls into format
like below:
Week of Mon. 5/16/05 thru Sun. 5/22/05
So I have a Report that looks at all the dates from a table, then seperates
them into the weeks they fall into, and puts them under a heading format like
the example above.
So let's say below are Dates Worked for the table.
5/18/05, 5/19/05, 8/23/05, 8/24/05,8/27/05
Would like the report to look like this
Week of Mon. 5/16/05 thru Sun. 5/22/05
"Worked For"
5/18/05 "Job Desription and Hours"
5/19/05 "Job Desription and Hours"
Week of Mon. 8/22/05 thru Sun. 8/28/05
"Worked For"
8/23/05 "Job Desription and Hours"
8/24/05 "Job Desription and Hours"
8/27/05 "Job Desription and Hours"
The Job Description, Hours and Worked For would come from the other values
in the table.
Hope this makes sense. Thanks again for any help.
Duane Hookom - 30 Oct 2005 17:24 GMT
Ok, You can use the DateAdd("d", x, [DateField]) to add or subtract days.
The number of days (x) to add or subtract can relate to the
WeekDay([DateField]). This information allows you to calculate the Monday of
any date.

Signature
Duane Hookom
MS Access MVP
> Grouping Week with a Date Value, ie 5/18/05.
>
[quoted text clipped - 31 lines]
>
> Hope this makes sense. Thanks again for any help.
rhob - 30 Oct 2005 17:46 GMT
Thanks a million, that's exactly what I was looking for.