Filter Weekend and Evening Hours (1 Viewer)

yahazim

Registered User.
Local time
Today, 19:57
Joined
Apr 2, 2001
Messages
24
Allright.

I have an Access frontend that is tracking Queues and Statuses of a specific process. When a Queue or Status changes, a timestamp is taken at the end of the old status, and the beginning of the new. I want to be able to track the number of hours something stays in that Status, however I want to filter out any weekend or evening hours from the total number of hours.

How can I do this?

Thanks in advance.

Jim Meyer
EDS, Inc.
 

GKite

Registered User.
Local time
Today, 19:57
Joined
Mar 22, 2002
Messages
29
I had to do something similar to this and it went kinda like this:

Do the normal calculation including nights and weekends. Then, look at the time 'in' stamp. If the total time from the time 'in' stamp to the time 'out' stamp is greater than the time from the time 'in' stamp to a night or weekend, simply recalculate by subtracting the time 'in' stamp from the beginning of the night/weekend instead of subtracting from the time 'out' stamp.

Hopefully this makes sense at all and will help..

-Greg
 

yahazim

Registered User.
Local time
Today, 19:57
Joined
Apr 2, 2001
Messages
24
This makes sense, I'm not quite sure how to do this in code.

Do you have an example?

Jim
 

yahazim

Registered User.
Local time
Today, 19:57
Joined
Apr 2, 2001
Messages
24
Also -- what if the status spans multiple days? through a weekend? how would the calculation look logically then?
 

yahazim

Registered User.
Local time
Today, 19:57
Joined
Apr 2, 2001
Messages
24
Travis -- that's it. Thanks for showing me the logic. I can figure it out from here.

Jim
 

Users who are viewing this thread

Top Bottom