PC Review


Reply
 
 
LG
Guest
Posts: n/a
 
      5th Jan 2010
I have inherited this DB that has many tables etc. One of the functions I
need to do is figure out how much time a person has worked in a month from a
table.
The fields are date, ClockIn, Break1Out, Break1In, LunchOut, LunchIn,
Break2Out, Break2In, ClockOut, Break3In, Break3Out.
What I am looking to do is take the total time from clockIn to ClockOut and
subtract the breaks and lunch time. I need this by Person for ? period of
time and combine in together to = 1 number for the month.
Any help would be appreciated.
 
Reply With Quote
 
 
 
 
John W. Vinson
Guest
Posts: n/a
 
      5th Jan 2010
On Tue, 5 Jan 2010 13:49:01 -0800, LG <(E-Mail Removed)> wrote:

>I have inherited this DB that has many tables etc. One of the functions I
>need to do is figure out how much time a person has worked in a month from a
>table.
>The fields are date, ClockIn, Break1Out, Break1In, LunchOut, LunchIn,
>Break2Out, Break2In, ClockOut, Break3In, Break3Out.
>What I am looking to do is take the total time from clockIn to ClockOut and
>subtract the breaks and lunch time. I need this by Person for ? period of
>time and combine in together to = 1 number for the month.
>Any help would be appreciated.


You'll need a Query using the DateDiff() function to calculate the length of
each work period. Type Ctrl-G to open the VBA editor and press F1 to get help;
look at the Help message for DateDiff.

This may be a bit more complex if some of the fields are NULL (i.e. the person
didn't take Break2, or (worse) forgot to clock in or clock out).
--

John W. Vinson [MVP]
 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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 On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Time calculations for Scheduled Time vs. Actual Time Worked The Caterer Microsoft Excel Misc 1 29th Nov 2009 08:08 AM
Difference between Windows Time Service and Internet Time in Date & Time Properties Saucer Man Windows XP General 0 14th Feb 2008 01:51 PM
Commandline utility to adjust time relative to present time (currently set time) dingdongdingding@yahoo.com Windows XP General 11 19th Jan 2006 04:25 AM
UserControl behaviour at author-time design-time and run-time =?Utf-8?B?SWFuIFRhaXRl?= Microsoft Dot NET Framework Forms 1 20th Oct 2004 05:18 PM
problem with date time field - if time=midnight loose time Michael San Filippo Microsoft Access VBA Modules 5 3rd Dec 2003 05:51 PM


Features
 

Advertising
 

Newsgroups
 


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