Calculate Total Time Spent on a Job with DateDiff
In this Microsoft Access tutorial, I will teach you how to calculate the difference between two times. You can use this for employee time clocks, job costing, or just about any database where you need to figure out the difference between a start time and an end time in minutes and/or hours.
Adam from Fort Dodge, IA (a Developer Student) asks: I have a series of jobs that have a start date/time and an end date/time. I need to be able to calculate the total time worked on each job so I can bill my customers accordingly. Additionally, sometimes the job might start on a Thursday and end on a Monday. I need to exclude weekends, after hours (5pm to 8am the next day) and lunch breaks (noon to 1pm). How do I do this?
BONUS FOR CHANNEL MEMBERS:
Silver Members and up get access to an EXTENDED CUT of this video which covers additional examples. That video will show you how to add ranges of time to exclude from your calculations (such as when the business is closed, lunch hour, breaks, etc.) and exclude weekends.
MEMBERS ONLY VIDEO:
BECOME A MEMBER:
Basic Math Difference: https://youtu.be/Z9FwFqGaphk
Aggregate Queries: https://youtu.be/60o0hRUfBHs
IIF Function: https://599cd.com/IIF
FREE Access Level 1: https://599cd.com/Free1
FREE Customer Template Database: https://599cd.com/XCDT
$1 Access Level 2: https://599cd.com/1Dollar
Your Questions Answered: https://599cd.com/TechHelp
Learning Connection 50% OFF: https://599cd.com/Connection
Richard's Blog: https://599cd.com/blog
Access Forum: https://599cd.com/AccessForum
Email Me: firstname.lastname@example.org
microsoft access, ms access, #msaccess, calculate total time, datediff, time clock, lunch breaks, exclude time ranges, exclude weekends, fractional hours, hours:minutes, employee time clocks, job costing time, elapsed time, access calculate time difference, datediff access age, project costs
Please feel free to post your questions or comments below. Thanks.