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 / July 2005

Tip: Looking for answers? Try searching our database.

Importing and changing times

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Chip193 - 27 Jul 2005 19:05 GMT
I have an excel worksheet that is sent to me on a regular basis for analysis.
I do the analysis in Access.  Both are from the Office 2000 product.

When the times are sent to the Excel database, they are sent as text in the
form 0123 (24 hr clock).  I need to convert them to times that Access can
understand.

I can change them in Excel using the TIME command, but the command provides
different output in Access.

Any ideas?

Thanks.
Klatuu - 27 Jul 2005 20:19 GMT
If you can always assume the text for the time will be 4 characters, with the
left 2 digits being hour and the right 2 being minutes, this will do it:
xlTime = "0123"
MyTime = TimeSerial(Val(Left(xlTime,2)),Val(Right(xlTime,2)),0)
now, MyTime = 1:23:00  AM

> I have an excel worksheet that is sent to me on a regular basis for analysis.
>  I do the analysis in Access.  Both are from the Office 2000 product.
[quoted text clipped - 9 lines]
>
> Thanks.
 
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.