J
Jean
I have an Access 2000 report that I am trying to group by
Business Day rather than calendar day.
The Business Day is user defined in a table. The work
Shifts for each Business Day are also defined in the same
table.
Business Day Start End Begin DOW End DOW
"Sun" 1:00 AM 10:00 AM "Sun" "Sun"
"Sun" 10:00 AM 11:00 AM "Sun" "Sun"
"Sun" 11:00 AM 2:00 PM "Sun" "Sun"
"Sun" 2:00 PM 10:30 PM "Sun" "Sun"
"Sun" 10:30 PM 1:00 AM "Sun" "Mon"
My data contains a date and time field for each record. I
join each record with the appropriate Business/Shift
record. I want the report to sort by the record's
Date/time field but group on the work Shifts and the
Business Day.
I currently have the Sorting and Grouping set as follows:
1. Recordtime - group on Day (no group header or footer)
2. Business Day - group on Each value (with group footer)
3. Work Shift - group on Each value (with group footer)
This works fine until a record has a timestamp after
midnight. Then the report displays the records between
midnight and 1:00 AM as a separate group.
report example:
1/11/2004 11:45 PM BDay = "Sun"
Groups on Work Shift 10:30 PM - 1:00 AM and 1/11/04
1/12/2004 12:01 AM BDay = "Sun"
Groups on Work Shift 10:30 PM - 1:00 AM and 1/12/04
Should be:
1/11/2004 11:45 PM BDay = "Sun"
1/12/2004 12:01 AM BDay = "Sun"
Group on Work Shift 10:30 PM - 1:00 AM and 1/11/04 (as the
business day)
How do I make it group on the Business Day but keep the
records sorted by the record timestamp?
Any help is greatly appreciated.
Jean
Business Day rather than calendar day.
The Business Day is user defined in a table. The work
Shifts for each Business Day are also defined in the same
table.
Business Day Start End Begin DOW End DOW
"Sun" 1:00 AM 10:00 AM "Sun" "Sun"
"Sun" 10:00 AM 11:00 AM "Sun" "Sun"
"Sun" 11:00 AM 2:00 PM "Sun" "Sun"
"Sun" 2:00 PM 10:30 PM "Sun" "Sun"
"Sun" 10:30 PM 1:00 AM "Sun" "Mon"
My data contains a date and time field for each record. I
join each record with the appropriate Business/Shift
record. I want the report to sort by the record's
Date/time field but group on the work Shifts and the
Business Day.
I currently have the Sorting and Grouping set as follows:
1. Recordtime - group on Day (no group header or footer)
2. Business Day - group on Each value (with group footer)
3. Work Shift - group on Each value (with group footer)
This works fine until a record has a timestamp after
midnight. Then the report displays the records between
midnight and 1:00 AM as a separate group.
report example:
1/11/2004 11:45 PM BDay = "Sun"
Groups on Work Shift 10:30 PM - 1:00 AM and 1/11/04
1/12/2004 12:01 AM BDay = "Sun"
Groups on Work Shift 10:30 PM - 1:00 AM and 1/12/04
Should be:
1/11/2004 11:45 PM BDay = "Sun"
1/12/2004 12:01 AM BDay = "Sun"
Group on Work Shift 10:30 PM - 1:00 AM and 1/11/04 (as the
business day)
How do I make it group on the Business Day but keep the
records sorted by the record timestamp?
Any help is greatly appreciated.
Jean