I've written an expression within a query to do a time/date calculation and report the result with a bunch of other data I've pulled. The expression works great and does exactly what I ask of it. However, my superiors would like the data returned in a slightly different format.
My expression is thus:
So, for an Outage Start value of 07/02/2014 09:42 and and Outage End value of 07/05/2014 02:30 it correctly returns 2:16:48- as in 2 days, 16 hours and 48 minutes.
I'd like to be able to have the output in h:mm format- so for the example above, it would be 64:48- 64 hours and 48 minutes.
I have racked my brain trying to fiddle with the Short Time reference in the expression above to no avail. I'd prefer not to have to spend a lot of time in excel manually converting each value into the correct format. In Excel, I format the fields with this data in it as
. Is there something analogous in Access for this?
Thanks for any help!
Best,
Eric
My expression is thus:
Code:
MTTR: Int([Outage End]-[Outage Start]) & ":" & Format([Outage End]-[Outage Start],"Short Time")
So, for an Outage Start value of 07/02/2014 09:42 and and Outage End value of 07/05/2014 02:30 it correctly returns 2:16:48- as in 2 days, 16 hours and 48 minutes.
I'd like to be able to have the output in h:mm format- so for the example above, it would be 64:48- 64 hours and 48 minutes.
I have racked my brain trying to fiddle with the Short Time reference in the expression above to no avail. I'd prefer not to have to spend a lot of time in excel manually converting each value into the correct format. In Excel, I format the fields with this data in it as
Code:
[h]:mm
Thanks for any help!
Best,
Eric