Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsFormsForms ProgrammingQueriesModules / DAO / VBAReports / PrintingMacrosDatabase DesignSecurityConversionImporting / LinkingSQL Server / ADPMultiuser / NetworkingReplicationSetup / ConfigurationDeveloper ToolkitsActiveX ControlsNew UsersGeneral 1General 2
Access DirectoryToolsTutorialsUser Groups
Related Topics
SQL ServerOther DB ProductsMS OfficeMore Topics ...

MS Access Forum / Importing / Linking / May 2007

Tip: Looking for answers? Try searching our database.

transformar hora em numero

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Elio Junior da Costa - 27 Apr 2007 23:24 GMT
como transformo uma hora em numero.   ex: 2:30:00(hora)  = 2.5(numero)
hmadyson - 01 May 2007 01:16 GMT
Here is a VBA function to solve your problem

Function TimeToNumber(InputTime As Date)
Dim num As Double

   num = Hour(InputTime) + Minute(InputTime) / 60 + Second(InputTime) / 3600
   TimeToNumber = num
End Function

You can probably also use a similar function in a query

hour([inputtime]+minute([inputtime])/60+second([inputtime])/3600

Please let me know if I can provide more assistance. I am sorry that I did
not respond in Spanish.

> como transformo uma hora em numero.   ex: 2:30:00(hora)  = 2.5(numero)
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.