473,398 Members | 2,404 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,398 software developers and data experts.

Total hours in Report over 24 hours

I have a 2016 access database that my maintenance team enters daily activities. I have a field called manhours. I created a report to show manhours entered for a period of time. The grand total ( SUM ) is greater than 24 hours. The total manhours should be 62:10 but is displaying in the report as 14:10. The manhours entered are in short time format. I am very new to access and need help.
Sep 27 '16 #1
6 1170
Narender Sagar
189 100+
Just take out the difference of two dates and multiply it with 24 in a query. e.g. if you have fromDate and ToDate fields, then in query design view, create a calculated field, as follows :

Expand|Select|Wrap|Line Numbers
  1. ManHrs:([ToDate]-[FromDate]*24)
Sep 27 '16 #2
Not sure of your answer. Lets say I have 5 people. they each enter 8 hours for today. The report is showing each members total hours entered today at 8 hours. Then at the bottom it shows a grand total of 16:00. But this should be 40:00. I have tried all combinations in the format field but can not get to display totals over 24 hours.
Sep 27 '16 #3
Narender Sagar
189 100+
You need to elaborate more about- what are the field you have for maintaining the date/time.If you can attach sample database, it will be easy to understand.
Sep 27 '16 #4
Hi Jimmy. I'll throw out some guesses... Could you be successfully showing hours, but that dates are being missed. (In your example, you have 8*5 or 40 and you are showing 16 which is the remainder of hours after the date is in the ones place.) If this is the case than Narender's solution will work correctly for you if you are using code SQL.

If this isn't the case, I recommend, if you cannot upload a copy as Narender said, you look and verify what type of information the field is designed to hold (table design) and what code if any is being run.

A final guess, to me it sounds like you are using a report to aggregate your data and the report is 'helping.' If I have correctly added one and one and made 3, then the solution may be as simple as changing the format of the field in the report.
Sep 27 '16 #5
PhilOfWalton
1,430 Expert 1GB
This bit of a query extracts the hours & minutes from a table of dates, adds then up and displays the total.

Expand|Select|Wrap|Line Numbers
  1. SELECT Sum(Hour([PaymentDate])*60 + Minute([PaymentDate])) AS TotTime, 
  2. (Sum(Hour([PaymentDate])*60 + Minute([PaymentdDate]))\60)*60 AS Hrs, 
  3. [TotTime]-[Hrs] AS Mins, 
  4. [Hrs] & ":" & [Mins] AS Result
  5. FROM Payments;
  6.  
If you include something similar in your query, I hope you get the result you require

Phil
Sep 27 '16 #6
jforbes
1,107 Expert 1GB
What Datatype are you using for your Hours?
Sep 28 '16 #7

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: Michael Keene | last post by:
I'm pretty much a beginner with Access but do have some experience but I'm stuck on this problem. Any suggestions would be appreciated. I have a very simple database that tracks the number of...
5
by: Mike | last post by:
Hello All, I have a report based upon a query. I have added a control to report footer that calcs the total cost of the inventory: =SUM(). When this total calculation is NOT on the report,...
3
by: Beowulf | last post by:
I have data coming from a telephony system that keeps track of when an employee makes a phone call to conduct a survey and which project number is being billed for the time the employee spends on...
1
by: ted.assur | last post by:
Hi there: This query seems like it should be so simple, however since the date field returns different dates, the sum grouping is not working (as desired). What do I need to do to get this to...
7
by: Sunil Korah | last post by:
Hi, I haven't used access reports much. I have a problem in getting the total of a group. I have 3 fields, ProgName (Program name), Pname (Participant's name) and PCategory (Participant...
2
klarae99
by: klarae99 | last post by:
Hello, I am working in Access 2003 on an inventory database. Right now I am working on a report which will be used to fill in forms that our state requires periodically to collect taxes. Right...
1
by: silversubey | last post by:
I am using a query to total hours (Cltbudget.CBudhours) and dollars (CltBudget.CBudFee) Grouped by client names (Cltbudget.CBudCltName). here is the Query: SELECT CltBudget.CBudCltName AS Client...
0
by: tnynyn | last post by:
I have created a form with two datetimepicker showing only hours (start and end times). I have timespan calculating the total hours, but when it goes to the next day, it adds 24 hours. For example,...
1
by: emmaruth | last post by:
Hi I would like to ask the correct formula in Excel. I would like to sum up the total number of hours per staff and then how many hours and minutes left or excess within 8 hours. Here's my table:...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.