Calculating Elapsed

D

Denise

I need to calculate the amount of time from Arrival to Discharge.

This is the formula that is in the form now

=DateDiff("n",[ArrivalTime],[DCTime])/60

I am not getting the right time with this formula. What do I need to change
or do to get the correct time.

Thanks.
 
J

John W. Vinson

I need to calculate the amount of time from Arrival to Discharge.

This is the formula that is in the form now

=DateDiff("n",[ArrivalTime],[DCTime])/60

I am not getting the right time with this formula. What do I need to change
or do to get the correct time.

Thanks.

What do you expect? What do you get?

The expression above will give you 0.5 if:

ArrivalTime and DCTime are Date/Time fields
Neither is NULL
They are 30 minutes apart

It will work across midnight if your fields include both the date and the
time.

John W. Vinson [MVP]
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top