I have a textbox 'Duration' whose control source is =DateDiff("n",[DurationFrom],[DurationTo])/60
All data is stored in a table.
This sort of works if the times entered in DurationFrom and DurationTo are nice and round (like 10:00 11:30 which would return 1.5hours)
I get problems when times are entered like:
10:00 11:22 which returns 1.36666666666667.
How would I get this to show real hours and minutes (like 1hour22minutes)?
It also does not seem to like 00:00 or 24:00 (not sure why).
(Access97)
All data is stored in a table.
This sort of works if the times entered in DurationFrom and DurationTo are nice and round (like 10:00 11:30 which would return 1.5hours)
I get problems when times are entered like:
10:00 11:22 which returns 1.36666666666667.
How would I get this to show real hours and minutes (like 1hour22minutes)?
It also does not seem to like 00:00 or 24:00 (not sure why).
(Access97)