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 SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Calculating a time difference between two records (same field) 1

Status
Not open for further replies.

ramc2000

Technical User
Nov 8, 2002
60
0
0
GT
Hi, I am trying to calculate the time elapsed between two events. I have a field in my table that gives me the time at which some event was logged. What I want is to display the time elapsed between that event and the previous one:


Event, Date/Time logged, Time elapsed.

1 11:39 39 minutes
2 11:00 10 minutes
3 10:50 5 minutes
4 10:45
 
try this:
datediff("d",{table.field}, previous({table.field}))
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top