My goal is to group dates by weeks. I have read both threads thread701-638944 “Group by Week” and thread703-664441 “Group by week….”, however I have some difficulty. In my query I have used GoDawgs’ suggestion (1st thread#): SundayOfWeek: [PTDate]-(Weekday([PTDate])-1) This works fine. However, when I use SLCHEd’s suggestion (2nd thread#): =Format$([SundayOfWeek],”ww”,0,0) to group by week in the report header of my report, the values produced are 1-52. Problem 1: since my database [PTDate] dates begin (9-6-2003), the first week # displayed is 36, (which is correct for week beginning 8/31/2003), when actually I want the first entry to reflect “Week # 1” for the beginning of my Physical Training Program. Problem 2: for the figures shown below, the [SundayOfWeek] and [PTDate] are all grouped under week #38, thus skipping the group #39-#40. I’m not sure what I’m missing to come up with the grouping below, which is not correct.
#38 [SundayOfWeek] and [PTDate]
9/14/2003 9/16/2003
9/14/2003 9/20/2003
9/14/2003 9/20/2003
9/21/2003 9/23/2003
9/21/2003 9/26/2003
9/28/2003 10/1/2003
9/28/2003 10/1/2003
9/28/2003 10/2/2003
#41 10/5/2003 10/6/2003
Possible solution: I thought if I use the results of the [SundayOfWeek] field in the query, to create a new field [ProgramWeek #] in the same query, to generate a #. Then in my report, I would group my [ProgramWeek #] by month. In the report header along side the [ProgramWeek#], I want to display the [SundayOfWeek] data. Is this feasible?
Any suggestion in what the expression in the query and report header should be, would be helpful.
#38 [SundayOfWeek] and [PTDate]
9/14/2003 9/16/2003
9/14/2003 9/20/2003
9/14/2003 9/20/2003
9/21/2003 9/23/2003
9/21/2003 9/26/2003
9/28/2003 10/1/2003
9/28/2003 10/1/2003
9/28/2003 10/2/2003
#41 10/5/2003 10/6/2003
Possible solution: I thought if I use the results of the [SundayOfWeek] field in the query, to create a new field [ProgramWeek #] in the same query, to generate a #. Then in my report, I would group my [ProgramWeek #] by month. In the report header along side the [ProgramWeek#], I want to display the [SundayOfWeek] data. Is this feasible?
Any suggestion in what the expression in the query and report header should be, would be helpful.