A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Database Design
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Time Calculations



 
 
Thread Tools Display Modes
  #1  
Old April 28th, 2004, 01:54 PM
James Mitchell
external usenet poster
 
Posts: n/a
Default Time Calculations

I have set up a 'simple' database for inputting times
spent on jobs and created a query whereby an individuals
statistics can be calculated for a month. The problem lies
in that when the database sums the times for the various
tasks, if the sum is greater than 24hours, the 'clock'
resets itself instead of producing a running total.ie
56:27:02.

Currently for example if two times ie 23:00:00 and 2:00:00
are summed, the result is displayed as 01:00:00 instead of
25:00:00

Any ideas?
  #2  
Old April 28th, 2004, 04:23 PM
Allen Browne
external usenet poster
 
Posts: n/a
Default Time Calculations


The simplest solution is probably to convert the times to minutes, and then
display the result as desired. Details in article:
Calculating elapsed time
at:
http://members.iinet.net.au/~allenbrowne/casu-13.html

--
Allen Browne - Microsoft MVP. Perth, Western Australia.
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.

"James Mitchell" wrote in message
...
I have set up a 'simple' database for inputting times
spent on jobs and created a query whereby an individuals
statistics can be calculated for a month. The problem lies
in that when the database sums the times for the various
tasks, if the sum is greater than 24hours, the 'clock'
resets itself instead of producing a running total.ie
56:27:02.

Currently for example if two times ie 23:00:00 and 2:00:00
are summed, the result is displayed as 01:00:00 instead of
25:00:00

Any ideas?



 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 12:43 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.