Hello,
I am trying to create a query that subtracts "TimeOUT" from "TimeIN" fields to calculate the total time worked.
The "TotalTime" is a new field that is not in the table, only in the query.
I am attempting to use the DateDiff function to calculate this, but I need to return both hours and minutes.
Currently, it looks like this:
Total Time: DateDiff("h",[Time IN],[Time OUT])
It works this way to return the total time in hours only.
The DateDiff function works to return either hours (h) or minutes
but I cannot figure out how to get both!
Perhaps someone has an answer or possibly a better way to get the results in hour:minute format for me??!!
I am trying to create a query that subtracts "TimeOUT" from "TimeIN" fields to calculate the total time worked.
The "TotalTime" is a new field that is not in the table, only in the query.
I am attempting to use the DateDiff function to calculate this, but I need to return both hours and minutes.
Currently, it looks like this:
Total Time: DateDiff("h",[Time IN],[Time OUT])
It works this way to return the total time in hours only.
The DateDiff function works to return either hours (h) or minutes
Perhaps someone has an answer or possibly a better way to get the results in hour:minute format for me??!!