MushroomKing
Registered User.
- Local time
- Today, 15:43
- Joined
- Jun 7, 2018
- Messages
- 100
Hello everyone. Im new here 
I wonder if anyone could help me out with some issues i have on my query.
My query has 2 time fields. I calculate the difference between the time in minutes. The data seems correct, BUT not for EVERY record. I cannot place where it goes wrong or how it gets that number.
Can anyone help? Many thanks!
I put a picture in the attachment.
I circled red which data is wrongly calculated.
No idea how it gets these values.

I wonder if anyone could help me out with some issues i have on my query.
My query has 2 time fields. I calculate the difference between the time in minutes. The data seems correct, BUT not for EVERY record. I cannot place where it goes wrong or how it gets that number.
Can anyone help? Many thanks!
Code:
SELECT STATS_master_query.employee_ID, STATS_master_query.intime, STATS_master_query.outtime, Sum(DateDiff("n",[intime],[outtime])) AS duration, STATS_master_query.direction
FROM STATS_master_query
GROUP BY STATS_master_query.employee_ID,
STATS_master_query.intime, STATS_master_query.outtime, STATS_master_query.direction
HAVING (((STATS_master_query.direction)="timer"));
I put a picture in the attachment.
I circled red which data is wrongly calculated.
No idea how it gets these values.
