Drstein99 Posted November 19, 2003 Posted November 19, 2003 I'm using an access report to convert a decimal number to time format. like if it were: number time (convert to) 8.25 8:30 10.75 10:45 87.5 87:30 The problem I'm running is when I use: FORMAT(myDecimal)/24,"h:nn") it gets lost when there are more than 24 hours for it to translate. Any ideas? Quote www.DRSTEIN99.com www.RAIDGEAR.net www.THERE.com -> Tell them DrStein99 sent ya!
Moderators Robby Posted November 19, 2003 Moderators Posted November 19, 2003 You can do DateDiff() with minutes but again messes up when past 24. Another way is to substring the numbers on the right of the semi-colon : and divide them by 60 ie 10:45 would be 45 / 60 = .75 result = 10.75 Quote Visit...Bassic Software
Drstein99 Posted November 19, 2003 Author Posted November 19, 2003 I'm trying to convert the DECIMAL number TO HHHH:MM Quote www.DRSTEIN99.com www.RAIDGEAR.net www.THERE.com -> Tell them DrStein99 sent ya!
Moderators Robby Posted November 20, 2003 Moderators Posted November 20, 2003 I guess the opposite would work.. ie 10.75 would be .75 * 60 = :45 Quote Visit...Bassic Software
Drstein99 Posted November 20, 2003 Author Posted November 20, 2003 I had to create a function in the module section of access, that does the converting. looks like it's a vb6 vba interface. Quote www.DRSTEIN99.com www.RAIDGEAR.net www.THERE.com -> Tell them DrStein99 sent ya!
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.