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

Creating a formula

Status
Not open for further replies.

newbie0423

IS-IT--Management
Oct 29, 2012
103
US
Hello,
I'm trying to write a formula that will show me the elapsed time between when a patient came out of the room until the next patient enter



 
If they are in the same record set

@Elapsed
datediff("s",{datetimeoutfield}, {datetime in field})

This will give seconds

Ian
 
No Ian they are not in the same record set. One is the patient's out of room time and then I want to see the time difference between the next patient's in room time
 

Please don't post the same question multiple times.

This should work if the cases are sorted by In Time, and there is no grouping, etc. that you haven't described.

datediff("s",previous({datetimeoutfield}), {datetime in field})

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top