Calculation with hours

F

Frank Dulk

I need to add hours, where the result appears according to example below:
15:32 + 17:45 = 33:17

ps.: I already tried in the format of abbreviated hour and I didn't get.
 
R

Rick Brandt

Frank Dulk said:
I need to add hours, where the result appears according to example below:
15:32 + 17:45 = 33:17

ps.: I already tried in the format of abbreviated hour and I didn't get.

Access doesn't have any such built-in handling for time durations. The DateTime
DataType is meant for storing "points in time", not "amounts of time". It can
actually do the latter, but it will always use dates for all of the chunks greater
than 24 hours and only use a Time format for what is left.

Generally for durations you are better off to store the interval you need as a long
integer (number of seconds or minutes) and then use an expression or custom function
to display it as Hours and Minutes.
 

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