You need two more fields(columns) in a table for the works of each day of each driver:
WorkID |
DriverID
|
workDay |
Job
|
startTime
|
endTime
|
1 |
1 |
8/31/2019 |
1 |
7:00 |
12:00 |
2 |
1 |
8/31/2019 |
2 |
13:00 |
18:00 |
3 |
1 |
9/1/2019 |
1 |
7:00 |
15:00 |
Then, you can add the man-hours for each driver for each workday with a query like this:
Code:
SELECT driverID, workDay, CDate(Sum(endTime-startTime)) AS Man-Hours
FROM tblWorks
GROUP BY driverID, workDay
You will get somethig like that:
driverID
|
workDay
|
Man-Hours
|
1 |
8/31/2019 |
10:00:00 |
1 |
9/1/2019 |
8:00:00 |
P.S.:
Note that this is a simple example.
In actually, you have to check if the endTime is in the next day of the startTime (startTime>endTime), and if so, you have to add 1 to the endTime (Sum(([endTime]+1)-[startTime])).