bungy said:
Marsh
First, thank you (and Rick) for your help, I am very new to world of Access
and the various calculations involved, and do appreciate all the help that I
get.
I didn’t try your expression as I was unsure how to implement it. However I
did take notice of what Rick said, and what you said about (Land - Launch)
when the launch time is before midnight and the land time is after midnight,
and ambiguous values.
I have now changed LAND & LAUNCH to be a date and time Value, and have used
DateDiff to obtain the actual time the Aircraft is in the air.
So I basically have a set of records -up to 20 flights per day- with
airborne times for each flight.
Flight times are mostly less than 5 hours duration and usually between 1h
30m and 2h 30m, how would I get the total flight to display in only
Hours:Mins duration.
If it is the expression as you said in your earlier reply then my apologise
(As I said at the beginning I don’t know how to apply it)
You didn't mention what units the DateDiff result uses, but
I think it's safe to assume that it's in minutes, i.e you
used DateDiff("n", Launch, Land)
This is different from the situation I was warning you about
earlier, so a different expression is needed. Try this
=TotMins \ 60 & Format(TotMins Mod 60, "\:00")
Be sure to check VBA Help for any part of the expression
that is unfamiliar to you.