Help | Site Map
Connecting Tech Pros Worldwide
 
 
LinkBack Thread Tools
  #1  
Old February 21st, 2006, 09:55 PM
JWilliams
Guest
 
Posts: n/a
Default 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.

  #2  
Old February 21st, 2006, 09:55 PM
Br@dley
Guest
 
Posts: n/a
Default Re: total minutes in access 2003

JWilliams wrote:[color=blue]
> 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.[/color]


Off the top of my head...

=DateDiff("nn", StartDateTime, EndDateTime)

?
--
regards,

Br@dley


  #3  
Old February 21st, 2006, 10:05 PM
Jeff
Guest
 
Posts: n/a
Default Re: total minutes in access 2003

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" <jwilliams@bfair.org> wrote in message
news:1140557934.476850.83820@z14g2000cwz.googlegro ups.com...[color=blue]
>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.
>[/color]


  #4  
Old February 21st, 2006, 10:35 PM
salad
Guest
 
Posts: n/a
Default Re: total minutes in access 2003

JWilliams wrote:
[color=blue]
> 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.
>[/color]
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.


  #5  
Old February 22nd, 2006, 08:45 PM
JWilliams
Guest
 
Posts: n/a
Default Re: total minutes in access 2003

Thanks for the information. It worked great.

 

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

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

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over network members.
Post your question now . . .
It's fast and it's free

Popular Articles