473,472 Members | 2,088 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

total minutes in access 2003

I am trying to calculate the total minutes in a day that an employee
provides services. When an employee works starts at 11 am in the
morning and finishes at 12 am (midnight) it is calculating it as 12am
start and 11 am finish with a total of 11 hours not the 13 it really
is.

I also need to print reports for total minutes for each individual
served and total for the fiscal year.

Feb 21 '06 #1
4 1799
Br
JWilliams wrote:
I am trying to calculate the total minutes in a day that an employee
provides services. When an employee works starts at 11 am in the
morning and finishes at 12 am (midnight) it is calculating it as 12am
start and 11 am finish with a total of 11 hours not the 13 it really
is.

I also need to print reports for total minutes for each individual
served and total for the fiscal year.

Off the top of my head...

=DateDiff("nn", StartDateTime, EndDateTime)

?
--
regards,

Br@dley
Feb 21 '06 #2
Assuming you are using the DateDiff function, you need to include the date
part of the time as well. In other words, don't pass the function just 11 am
and 12 am, pass it 02/22/06 11am and 02/23/06 12am.

DateDiff("n", "02/22/06 11am", "02/23/06 12am")

Jeff Pritchard
________________
Asken Research Pty. Ltd.
Access Database Developers
http://www.asken.com.au

"JWilliams" <jw*******@bfair.org> wrote in message
news:11*********************@z14g2000cwz.googlegro ups.com...
I am trying to calculate the total minutes in a day that an employee
provides services. When an employee works starts at 11 am in the
morning and finishes at 12 am (midnight) it is calculating it as 12am
start and 11 am finish with a total of 11 hours not the 13 it really
is.

I also need to print reports for total minutes for each individual
served and total for the fiscal year.

Feb 21 '06 #3
JWilliams wrote:
I am trying to calculate the total minutes in a day that an employee
provides services. When an employee works starts at 11 am in the
morning and finishes at 12 am (midnight) it is calculating it as 12am
start and 11 am finish with a total of 11 hours not the 13 it really
is.

I also need to print reports for total minutes for each individual
served and total for the fiscal year.

Does your start/end times include a date? Simply having the time isn't
good enough unless you do a comparison whether or not the time out is
less than time in. You'll need to make an adjustement if so. Other
posters described the DateDiff function if you store both date/time.
Feb 21 '06 #4
Thanks for the information. It worked great.

Feb 22 '06 #5

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

Similar topics

0
by: Matt | last post by:
I am running CR 8.5 from a (large) SQL Server db. My aim is to use crystal enterprise so end users in our sales team can access reports on demand for a given date range and client so I am trying...
4
by: Bill Dika | last post by:
Hi I am trying to calculate a running total of a calculated textbox (tbAtStandard) in GroupFooter1 for placement in a textbox (tbTotalAtStandard) on my report in Groupfooter0. The problem...
1
by: Think | last post by:
I want to build a new field based on field START_TIME (1.12.2003 1:37:32) called TOTAL_NUMBER_OF_CALLS. In this field I want to have a number of total records. That number I see at the bottom of...
4
by: Stephen Young | last post by:
Hello Have a bit of a problem, im trying to get the total number of hours:minutes for all actions over the month in a query, have tried two methods to no luck... Duration This Month:...
3
by: Stephen Chaplin | last post by:
I'm summing up time spent on jobs over a week, some of these jobs last greater than 24 hours and when access sums these up it appears that it starts again at 00:00 once it gets past 23:59. Is it...
0
by: jessicaeatworld | last post by:
Hi, I'm using Access 2003 on Windows XP. I have created a PivotTable View Form and at the bottom is an automatically inserted Grand Total row. I added sum and avg fields and then hid the details so...
15
klarae99
by: klarae99 | last post by:
I am working on an Inventory Database in Access 2003. I am working on a report that I could print when its time to file our State Sales Tax paperwork. The figures I need for this report are Total...
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...
7
by: Ecohouse | last post by:
I'm working on a project that was dropped in my lap. It is in Access 2003. There are short time fields which get calculated values (eg. 1:30). But I will need to total up those values for...
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
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
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,...
1
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...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

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.