Question Locked

Convert Number to Time in Access

0 helpful
3 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.
Hello everyone,I need to convert a Number e.g 25.50 to 25:30. How can i do this in a query.Thank you in advance.

3 replies

by tony hopkinson

Best bet is number of seconds.

Select DateAdd(second,[MyNumber] * 60, 0)

That will give you number of seconds since the base date in access.

Then format it as mm:ss for output. Generally I store durations as number of seconds or milliseconds, otherwise you have to do a lot of arsing about to use it.

by tony hopkinson

Post your actual query mate we'll have a furkle.
Maybe we need to do a bit of converting, waht datatype is your equivalent of MyNumber?

This discussion is closed to new replies.