akins4lyfe
Programmer
My question is based of Access Database.
I have an application that calculates total hours and breaks for employees within my department.
The database has an action query, "QryTimesheet". This contains three calculated fields, and the criteria i used for displaying results are:
Total Break 1: Round(([Breakin 1]-[Breakout 1])*24,2)
Total Break 2: Round(([Breakin 2]-[Breakout 2])*24,2)
Total Hours: Round(([Logout Time]-[Login Time])*24,1)
These fields have Date/Time datatypes. Exact Time are entered by each employee using a text field & command button on a form.
but i have a problem with the total breaks result format, its coming up in decimal, for example if an employee was on break between 3:06:19 PM - 3:20:27 PM
total breaks output 0.24, im not quite sure if this is 24mins or 24 seconds.
I would prefer my query output results similar to:
1 Hour 20 Minutes or
30 minutes e.tc
Converting those decimals to hrs/minutes and formatted with Hrs Minutes.
Pls Assist
thank you all.
I have an application that calculates total hours and breaks for employees within my department.
The database has an action query, "QryTimesheet". This contains three calculated fields, and the criteria i used for displaying results are:
Total Break 1: Round(([Breakin 1]-[Breakout 1])*24,2)
Total Break 2: Round(([Breakin 2]-[Breakout 2])*24,2)
Total Hours: Round(([Logout Time]-[Login Time])*24,1)
These fields have Date/Time datatypes. Exact Time are entered by each employee using a text field & command button on a form.
but i have a problem with the total breaks result format, its coming up in decimal, for example if an employee was on break between 3:06:19 PM - 3:20:27 PM
total breaks output 0.24, im not quite sure if this is 24mins or 24 seconds.
I would prefer my query output results similar to:
1 Hour 20 Minutes or
30 minutes e.tc
Converting those decimals to hrs/minutes and formatted with Hrs Minutes.
Pls Assist
thank you all.