A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Database Design
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Time field for calculating past midnight



 
 
Thread Tools Display Modes
  #1  
Old November 3rd, 2005, 04:09 AM
Tina N.
external usenet poster
 
Posts: n/a
Default Time field for calculating past midnight

There were some instructions on here but I didn't understand how to put the
date and time to calculate total minutes between the interval. I have two
fields in my data base. Time and then date for a set of 6 different numbers.
I want to have access calculate the differences between two times that may
occur on different dates. How do I do this?
  #2  
Old November 3rd, 2005, 05:12 AM
Ken Snell [MVP]
external usenet poster
 
Posts: n/a
Default Time field for calculating past midnight

You can add the date field and the time field together, and then use the
DateDiff function to calculate the difference between two date/time values.

ElapsedMinutes = DateDiff("n", [DateField1] + [TimeField1], [DateField2] +
[TimeField2])
--

Ken Snell
MS ACCESS MVP

"Tina N." wrote in message
...
There were some instructions on here but I didn't understand how to put
the
date and time to calculate total minutes between the interval. I have two
fields in my data base. Time and then date for a set of 6 different
numbers.
I want to have access calculate the differences between two times that may
occur on different dates. How do I do this?



 




Thread Tools
Display Modes

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

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Memo Field Sam General Discussion 12 November 10th, 2005 09:16 PM
Time Zone suggestions for Outlook Calendar Ben Knox Calendar 2 October 20th, 2005 03:42 PM
Please Help! Ref Article ID 210504 Telobamipada New Users 8 May 9th, 2005 01:09 PM
Design help, please SillySally Using Forms 27 March 6th, 2005 04:11 AM
Use first record found in expression? CASJAS Running & Setting Up Queries 17 July 22nd, 2004 09:21 PM


All times are GMT +1. The time now is 11:37 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.