R
RRLady
I am having trouble with Daily Times entered in quarter hours adding up
correctly for my query.
We are collecting daily time spent on certain activities. Time can be
entered as whole hours or quarter hours. The field in the table is a Number
Data Type formatted as Single showing 2 decimal places.
There is another set of fields that show the Start Time for the day and the
End Time for the day. These fields are also Number Data Type formatted as
Integar, and are entered in a Military type format; i.e. 0800, 1430, 0545,
1315.
The Total Time Spent On Duty Activities MUST EQUAL the Total Hours Worked.
The Total Hours Worked is calculated by Subtracting the End Time from the
Start Time Then dividing by 100.
The problem is in how the data is entered.
If the quarter hours are entered in minutes (0.15, 0.30, 0.45) they add to
60 minutes which is an hour, but not to a whole number.
If the quarter hours are entered in decimal quarters (0.25, 0.50, 0.75) they
add to 100 which is a whole number, but not a whole hour.
Example:
Start Time - 0700
End Time - 1615
Total Hours Worked - 9 Hours 15 Minutes
Time spent on activities shows full hours for all but one which has 1 hour
15 minutes.
If you enter the time as 1.15 it will equal the Total Hours Worked; however,
when you add up the Full Weeks Time Spent on Activities, you will not get the
correct value.
How can I get around this problem?
Thanks for the help.
correctly for my query.
We are collecting daily time spent on certain activities. Time can be
entered as whole hours or quarter hours. The field in the table is a Number
Data Type formatted as Single showing 2 decimal places.
There is another set of fields that show the Start Time for the day and the
End Time for the day. These fields are also Number Data Type formatted as
Integar, and are entered in a Military type format; i.e. 0800, 1430, 0545,
1315.
The Total Time Spent On Duty Activities MUST EQUAL the Total Hours Worked.
The Total Hours Worked is calculated by Subtracting the End Time from the
Start Time Then dividing by 100.
The problem is in how the data is entered.
If the quarter hours are entered in minutes (0.15, 0.30, 0.45) they add to
60 minutes which is an hour, but not to a whole number.
If the quarter hours are entered in decimal quarters (0.25, 0.50, 0.75) they
add to 100 which is a whole number, but not a whole hour.
Example:
Start Time - 0700
End Time - 1615
Total Hours Worked - 9 Hours 15 Minutes
Time spent on activities shows full hours for all but one which has 1 hour
15 minutes.
If you enter the time as 1.15 it will equal the Total Hours Worked; however,
when you add up the Full Weeks Time Spent on Activities, you will not get the
correct value.
How can I get around this problem?
Thanks for the help.