saebodybuilder
New member
- Local time
- Today, 08:48
- Joined
- Jan 6, 2013
- Messages
- 2
Hi,
I'll start off by saying I've been reading this forum for a while and while I'm only a novice at access programming, you can learn tons from this place.
My question is this: I have a table where I'm entering employees' hours worked. Basically, it's something like this:
ID WorkerNumber Dateworked TimeStart TimeEnded
1 2 1/2/2013 10:00:00 AM 3:00:00 PM
2 2 1/3/2013 2:00:00 AM 11:00:00 AM
3 2 1/4/2013 12:15:00 AM 11:30:00 AM
4 2 1/5/2013 10:25:00 PM 11:00:00 AM
5 3 1/2/2013 11:00:00 AM 3:30:00 PM
6 3 1/3/2013 12:00:00 PM 10:00:00 PM
7 3 1/10/2013 7:00:00 AM 4:00:00 PM
I have a query that (easily) determines how many hours an employee has worked on any given day. What I can't figure out at all, is how to write a query that can figure out how much time an employee had off in between shifts.
Thus far I'm able to run a query that separates this main table into individual workers by their id numbers, but can't figure out how to determine time off between shifts - as the last hour worked one day, and the first hour worked the next day are on two different lines (they are two different table entries).
Anyone care to help? I'm sure there has to be an easy way but I've spent hours playing and searching and I've gotten nowhere.
Thanks
I'll start off by saying I've been reading this forum for a while and while I'm only a novice at access programming, you can learn tons from this place.
My question is this: I have a table where I'm entering employees' hours worked. Basically, it's something like this:
ID WorkerNumber Dateworked TimeStart TimeEnded
1 2 1/2/2013 10:00:00 AM 3:00:00 PM
2 2 1/3/2013 2:00:00 AM 11:00:00 AM
3 2 1/4/2013 12:15:00 AM 11:30:00 AM
4 2 1/5/2013 10:25:00 PM 11:00:00 AM
5 3 1/2/2013 11:00:00 AM 3:30:00 PM
6 3 1/3/2013 12:00:00 PM 10:00:00 PM
7 3 1/10/2013 7:00:00 AM 4:00:00 PM
I have a query that (easily) determines how many hours an employee has worked on any given day. What I can't figure out at all, is how to write a query that can figure out how much time an employee had off in between shifts.
Thus far I'm able to run a query that separates this main table into individual workers by their id numbers, but can't figure out how to determine time off between shifts - as the last hour worked one day, and the first hour worked the next day are on two different lines (they are two different table entries).
Anyone care to help? I'm sure there has to be an easy way but I've spent hours playing and searching and I've gotten nowhere.
Thanks