update query to convert time and minutes

trythis

Registered User.
Local time
Today, 07:52
Joined
Jul 27, 2009
Messages
67
I have a switch that produces a .txt file that I import into Access.

this file gives me military time like 1542 and 723 I would like to change this to 7:23 AM and 3:42 PM is this possible?

Also I get minutes in this format
00053
00114

I would like this to be
:53
1:14

Any help would be greatly appreciated.

Thanks,
Tina
 
format(1542,"##:##") gives you 15:42
cdate("15:42") gives you 3:42:00 PM
 

Users who are viewing this thread

Back
Top Bottom