Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Microsoft Office > Access and Access VBA > Access
| Search | Today's Posts | Mark Forums Read
Access Discussion of Microsoft Access database design and programming. See also the forums for Access ASP and Access VBA.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Access section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old February 13th, 2004, 01:56 AM
Registered User
 
Join Date: Dec 2003
Location: Whittier, California, USA.
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default calculate time between two dates

I am setting up an Access database that will count how many hours it take from the time a record is received to the time it is released. The two fields hold the date and time in this format 2/13/04 10:00PM. I want to calculate the time in hours between the two dates but not including weekends.
Ex. I would want the following example listed below to equal 60.5 hours

Received 2/13/04 10:00PM
Released 2/18/04 10:30AM

Note that I do not want it to count the weekends (2/14/04 & 2/15/04)

Does anyone know how to set this up?
 
Old February 13th, 2004, 11:38 PM
Friend of Wrox
 
Join Date: Nov 2003
Location: Lehigh Acres, FL, USA.
Posts: 625
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to jemacc
Default

Here is an article that will help with converting the time your looking for.

http://support.microsoft.com/default...b;EN-US;210604





Similar Threads
Thread Thread Starter Forum Replies Last Post
calculate a number between two dates in time t400 SQL Server 2000 8 September 5th, 2006 01:14 PM
Urgent! how to calculate difference between dates Subuana Beginning VB 6 2 March 22nd, 2006 05:34 PM
How to calculate the work days beetwen two dates. andres_pm Javascript 1 October 7th, 2004 06:23 AM
how to calculate difference in dates ashu_gupta75 Excel VBA 3 August 9th, 2004 06:11 AM
How to Calculate dates in datagrid columns chiefouko VS.NET 2002/2003 2 July 15th, 2004 01:24 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.