Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Rhinorhino on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Time difference help

Status
Not open for further replies.

smorgan77

Programmer
Joined
Nov 15, 2007
Messages
8
Location
US
I need help with datediff in Access. I'm trying to find the difference in time (minutes) between 2 fields and I can't seem to do it. Both fields are formatted as datetime and look like 2/2/2009 8:14:36 AM. How do I get the difference in time (there are over 17,000 records in the table) for each record?

2/2/2009 8:14:36 AM - 2/2/2009 8:30:36 AM
 


Code:
datediff("n",[Field1], [Field2])


Skip,

[glasses]Just traded in my old subtlety...
for a NUANCE![tongue]
 
Thank you Thank you Thank you Thank you Thank you!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top