convert minute to short time

balahawy

Registered User.
Local time
Today, 07:45
Joined
Sep 29, 2013
Messages
41
Hi all i have a problem i have field contains (minutes as number) like 5750 i want to convert thes minutes to short time hh :nn to be 95:50
 
Try the below code:
Code:
Format(YourFieldName \ 60, "00") & ":" & Format(YourFieldName Mod 60, "00")
 
You cannot. In Access time is "time of day", and Short Time therefore cannot go beyond 24 hours. You need to calculate the amount of hours and minutes and construct a string yourself:

DIm MyShortTime As String
MyShortTime=Format(NumberOfHours,"00") & ":" & Format(NumberOfMinutes,"00")
 

Users who are viewing this thread

Back
Top Bottom