M
Michael
I'm printing a schedule with 23 potential time slots each day. On my
report, I need to have a space for each time slot - whether it is actually
filled with an employee or not. If there is no employee scheduled for a
particular time then the start time for the shift should print followed by a
blank space to the right of the time.
My report is grouped on date. I want the date to be at the top of the
column, with start times and employees directly below it. I've fiddled
arount with the OnFormat event for the group header and detail section
extensively trying to figure out how to predict when Access with execute the
group header, but I'm at a loss.
Access default behavior causes it to get to the end of a group (get to the
end of the records with the same date), then execute the OnFormat event for
the group header, going to the next date group. Sounds perfect, but I'm not
able to insert the missing shifts before the group header prints.
I haven't had any problems inserting the time and it's associated blank area
to the right when it is in the middle of the date group. For example:
Jan 1st
07 Miller
07 Barton
07
07
11 Turpen
etc.
I can't tell when the last record in the date group executes, so the result
is something like:
19 Murphy
23 Miller
Jan 2nd
23
23
07 Martin
07 Smith
etc.
As you can see, I can add the shifts (with no associated data in the
recordsed) after the group header executes. I've thought of a couple ways I
can control the output, but need your help with them. If there is a way to
find out how many records are ACTUALLY in a group, I can use a counter and
Case statements to insert the 23 needed slots before allowing the group
header for the next day to execute. OR, if there is a way to tell when the
group header will execute NEXT, I could similarly delay the event till I run
through the appropriate number of time slots, then let it continue. Any
other ideas/suggestions?? I'm pretty much a novice - so feel free to spell
it out for me in simple terms. Thank you, all.
Michael
report, I need to have a space for each time slot - whether it is actually
filled with an employee or not. If there is no employee scheduled for a
particular time then the start time for the shift should print followed by a
blank space to the right of the time.
My report is grouped on date. I want the date to be at the top of the
column, with start times and employees directly below it. I've fiddled
arount with the OnFormat event for the group header and detail section
extensively trying to figure out how to predict when Access with execute the
group header, but I'm at a loss.
Access default behavior causes it to get to the end of a group (get to the
end of the records with the same date), then execute the OnFormat event for
the group header, going to the next date group. Sounds perfect, but I'm not
able to insert the missing shifts before the group header prints.
I haven't had any problems inserting the time and it's associated blank area
to the right when it is in the middle of the date group. For example:
Jan 1st
07 Miller
07 Barton
07
07
11 Turpen
etc.
I can't tell when the last record in the date group executes, so the result
is something like:
19 Murphy
23 Miller
Jan 2nd
23
23
07 Martin
07 Smith
etc.
As you can see, I can add the shifts (with no associated data in the
recordsed) after the group header executes. I've thought of a couple ways I
can control the output, but need your help with them. If there is a way to
find out how many records are ACTUALLY in a group, I can use a counter and
Case statements to insert the 23 needed slots before allowing the group
header for the next day to execute. OR, if there is a way to tell when the
group header will execute NEXT, I could similarly delay the event till I run
through the appropriate number of time slots, then let it continue. Any
other ideas/suggestions?? I'm pretty much a novice - so feel free to spell
it out for me in simple terms. Thank you, all.
Michael