473,394 Members | 1,724 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,394 software developers and data experts.

Adding hour/minute time in MS Access

Hello........I have a problem adding up record entries with more than 24
hours when the fields are formatted as hour/minute (h:m). If the actual
summed total of all records is greater than 24 hours, then the hour part of
the answer is truncated to a number less than 24 based on however many
multiples of 24 were part of the summed answer (clear as mud?).
I anticipate the soulution involves either formatting the time field in a
manner that allows more than 24 hours to be displayed or being able to
convert the inputted h:m times into decimal numbers before any summing takes
place.
Can anyone point me towards a simple solution to this problem.
.........Thank you.
Mar 1 '08 #1
1 3561
"George" <ge****@handy.pair.comwrote in
news:mv*****************@nlpi069.nbdc.sbc.com:
Hello........I have a problem adding up record entries with more
than 24 hours when the fields are formatted as hour/minute (h:m).
If the actual summed total of all records is greater than 24
hours, then the hour part of the answer is truncated to a number
less than 24 based on however many multiples of 24 were part of
the summed answer (clear as mud?). I anticipate the soulution
involves either formatting the time field in a manner that allows
more than 24 hours to be displayed or being able to convert the
inputted h:m times into decimal numbers before any summing takes
place.
Can anyone point me towards a simple solution to this problem.
........Thank you.
Dates and times are stored in Access as (# of days since
12/12/1899).(fraction of one day).If you have not stored the day
portion of the date, you can sum the numbers underlying the hh:mm
format, then use a self-written function to get the days as
cint(SumOftimes) and show that as well as the time.

If you have stored the data and are just not showing it, usse the
datediff() function to get the number of minutes, then convert
minutes to days:hours:minutes using a different function such as the
sec2Dur() function I posted on this list a couple of years ago.
Google finds it readily.


--
Bob Quintal

PA is y I've altered my email address.

--
Posted via a free Usenet account from http://www.teranews.com

Mar 2 '08 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: James P. | last post by:
Hello, In my Access report, I have a minutes field in the detail line. How do I convert that minute to hour and minute. The problem for me now is if I take the minutes, say 75 divide by 60, it...
4
by: Richard Abraham | last post by:
I have created a new class ServiceTimer based upon the .NET System.Timers.Timer class. This has a new property CollectionIntervalMinutes which I expected to be added to the 'Behavior' section of the...
1
by: Tony | last post by:
How do I add a web browser to a .net WinForm? Tony
22
by: Drum2001 | last post by:
I have a table that tracks employee times. I have a column (Date/Time). Users, through a form, enter how long it takes them to complete a task. For example, 03:45 = 3 hours and 45 mins. I am...
3
by: Nigel Heald | last post by:
Hi Folks, We have a form that records flight times in hours and minutes, for example a 1 hour 15 minute flight is recorded as 1:15 Does anyone know how to get Access 2003 to calculate a total...
1
by: Nigel Heald | last post by:
Hi Folks, We have a form that records flight times in hours and minutes, for example a 1 hour 15 minute flight is recorded as 1:15 Does anyone know how to get Access 2003 to calculate a total...
2
by: Devine123 | last post by:
Hi, I’m creating a perl script that takes incoming http/s requests, logs the standard input, output and error, before returning the output to the client. The input, output and error log is appended...
8
Dököll
by: Dököll | last post by:
All it is, is a simple program that asks to enter hour and minute and makes the clock tick, after ticking, when clock is viewed, it should read a minute ahead. Very proud of the results. The only...
5
by: maury | last post by:
Hello, I have an SQL Server table with a (text) field in which there is a data value in this format: 200802290525 I need to build an update query the modifies this value subtracting 1 (one)...
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: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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...

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.