Assuming a table named Table1 with a field called MyHour, a query that would
display the decimal hour as hours:minutes would look like this:
SELECT Format([myhour]/24,"Short Time") AS FormattedHour, CDate([myhour]/24)
AS ConvertedHour
FROM Table1;
and would display the times like so:
FormattedHour ConvertedHour
03:30 3:30:00 AM
However, this will only work for value less than 24 hours. For higher
values, I have a small sample database on my website (see sig below) called
"ConvertStringStuff.mdb" which can handle higher values.
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.