Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Converting Text to Time 1

Status
Not open for further replies.
Jan 27, 2004
63
CA
I have imported a large data file in to Access. I have a whole bunch of values for time. They are in a text format and I need to convert them to time.

Activity Start Time
083000
093200
090500
100500
092800

I need to get it into the following format.

8:30
9:32
9:05 and so forth

Is there a function that can help me with this?

 


Hi,

TimeSerial(hour, minute, second)

Skip,

[glasses] [red]Be Advised![/red] Coeds studying ancient Egyptian plumbing, might be known as...
Pharaoh Faucet Majors [tongue]
 
How would u incorporate the TIMESERIAL function in the query?

would it be timeserial(text),(hour, minute, second)
 
Have a look to the Left, Mid and Right functions too.

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ181-2886
 


Code:
TimeSerial(Left([Activity Start  Time],2), Mid([Activity Start  Time],3,2), Right([Activity Start  Time],2))


Skip,

[glasses] [red]Be Advised![/red] Coeds studying ancient Egyptian plumbing, might be known as...
Pharaoh Faucet Majors [tongue]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top