How do I insert a colon so a string of numbers is recogized as a t

M

Mseme

I have a database that contains a time field where all of the times should be
shown in the HH:MM:SS (hours, minutes, seconds) format. However, all of the
times are missing the second colon, so they appear as HH:MMSS and are
accordingly not recogized as times. I need to insert a colon before the
seconds. Is there something I can do to have Access 2000 insert a colon two
digits from the end of each string in the cell?
 
B

Brian

Mseme said:
I have a database that contains a time field where all of the times should be
shown in the HH:MM:SS (hours, minutes, seconds) format. However, all of the
times are missing the second colon, so they appear as HH:MMSS and are
accordingly not recogized as times. I need to insert a colon before the
seconds. Is there something I can do to have Access 2000 insert a colon two
digits from the end of each string in the cell?

New query, click the SQL button, paste this in and run it:

UPDATE some_table SET some_field = Left(some_field,5) & ":" &
Right(some_field,2)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top