Hi
I need to convert time to a decimal number after I insert it. I have found a function to do that in a book.
It works but it is not what I really need. I have a number field in a table and I want time to change to decimal number after I inset the time (for example 3:45 to 3,75). I don't need message box I need those numbers inset to the table.
I hope you understand my question and thank you very much for your help.
I need to convert time to a decimal number after I insert it. I have found a function to do that in a book.
Code:
Function IndT(T As Date) As Single
IndT = T * 24
End Function
Sub ConvertTime()
MsgBox IndT([fieldname])
End Sub
I hope you understand my question and thank you very much for your help.
Last edited: