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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Calculate the number of Business Hours between two date / time fields

Status
Not open for further replies.
May 31, 2001
12
GB
Can anyone advise me how I might progress this issue.

I have played with DateDifff and can get the Total Number of Hours, but obviously this will include overnight time, when our helpdesk does not operate...!?!?!?!?! Adrian Rutter
Consultant - UK
 
Not much to go on here, so my response will be likewise sparse.

I would approach this by having one recordset hold the dates/times of operation for the business (Help Desk?). This would basically be the open and close date/time values for the entit/object. Depending on the specifics, it may be on an individual, group, whole department or other sub-division, which could, in turn dictate additional fields and/or record entries. I would then set up the other part to just hold the normal start and end date/time values for the entries (Calls/requests?). to determine the "Work Hours" between the statr / end, just calculate (DateDiff is ONE way to do this - but it does limit the interval). Then, for the same start & end, calculate the "Holiday Hours" as the time NOT included by the unit responsible and subtract from te total / overall hours between start / end.

MichaelRed
mred@att.net

There is never time to do it right but there is always time to do it over
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top