mtnsurfer22
Programmer
I have read through many posts on this forum that are similar to my problem. However, it is now clear to me that I don't understand Access reporting as I cannot figure out a solution.
I have built a report using the wizard in Access. I have three criteria in my report...Date, MachineID, Hours. Each day the Hours are recorded from each machine into a table. The report I need will show the number of hours each machine has run each week (Monday through Sunday). I would like it to look as follows...
Monday, Jan 24th, 2005
Machine1
1/24/05 152
1/25/05 160
1/26/05 165
1/27/05 170
1/28/06 175
1/29/05 180
1/30/05 185
Summary:
Max: 185 Min: 152 Difference 33
Machine2
1/24/05 15
1/25/05 16
1/26/05 16
1/27/05 17
1/28/06 17
1/29/05 18
1/30/05 18
Summary:
Max: 18 Min: 15 Difference 3
Monday Jan 31, 2006
etc....etc...
The report is working as I have my three fields on the report and am grouping by date then by machine number. However, as you have probally guessed...I am sorting the date by week and therefore the first week is only 5 days as it then sets the first day of the week to Sunday for the rest of the report (I have a filter in place where the first date is a Monday so it beings there).
I have also tried to group the dates by 'Day' with an interval of 7...but for some reason that ends up making the first day of the week a Saturday after the first week..??
In the date text box in the Header of my Date grouping I have tried using =Format([Date],"ww",2,0) but it seems to have no affect. The only way I have found to change the grouping interval is by using the icon on the toolbar.
I am faimilar with VB and have written a fair amount of basic interfaces...but have never had to use it when writting reports.
I have built a report using the wizard in Access. I have three criteria in my report...Date, MachineID, Hours. Each day the Hours are recorded from each machine into a table. The report I need will show the number of hours each machine has run each week (Monday through Sunday). I would like it to look as follows...
Monday, Jan 24th, 2005
Machine1
1/24/05 152
1/25/05 160
1/26/05 165
1/27/05 170
1/28/06 175
1/29/05 180
1/30/05 185
Summary:
Max: 185 Min: 152 Difference 33
Machine2
1/24/05 15
1/25/05 16
1/26/05 16
1/27/05 17
1/28/06 17
1/29/05 18
1/30/05 18
Summary:
Max: 18 Min: 15 Difference 3
Monday Jan 31, 2006
etc....etc...
The report is working as I have my three fields on the report and am grouping by date then by machine number. However, as you have probally guessed...I am sorting the date by week and therefore the first week is only 5 days as it then sets the first day of the week to Sunday for the rest of the report (I have a filter in place where the first date is a Monday so it beings there).
I have also tried to group the dates by 'Day' with an interval of 7...but for some reason that ends up making the first day of the week a Saturday after the first week..??
In the date text box in the Header of my Date grouping I have tried using =Format([Date],"ww",2,0) but it seems to have no affect. The only way I have found to change the grouping interval is by using the icon on the toolbar.
I am faimilar with VB and have written a fair amount of basic interfaces...but have never had to use it when writting reports.