Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

grouping time into work shifts

Status
Not open for further replies.

shan42

Programmer
Apr 16, 2002
6
AU
hi, my situation is that i have to do a report of a whole bunch of calls logged over the course of a day and need to group them into regular shifts. i'd ideally like the parameter box for these shifts to be entered by the user because shift lengths can change.

cheers
 
Create a paramater for each of Shift1 start time, shift2, etc.

Then a formula to decide if

if Time({table.datetimefield}) >= time(0,0,0) and
Time({table.datetimefield}) <= Time({?shift1}) then
... // 1 else 0 if you want to count
{table.field} else 0 if you want to accumualte a field.
Editor and Publisher of Crystal Clear
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top