View Full Version : Calculating Total Time


sdeepe
02-25-2002, 08:41 AM
I have created a query that identifies the date and time that a patient was admitted to the Emergency Department, and the Date and Time that each patient was discharged. How do I calculate total time that the patient was in the ED? The problem for me is that sometimes the patient is admitted on one day and discharged on another.

Thanks in Advance for your help

Liv Manto
02-25-2002, 10:29 AM
datediff()

Kathy W
02-25-2002, 12:35 PM
Calculating Total Time
In the query create an expression as follows http://www.access-programmers.co.uk/ubb/frown.gif[DateTimeDischarge]-[DateTimeAdmission])*24
This should give you number of hours in ER