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 TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Convert Time values after midnight to 24:00, 25:00, 26:00

Status
Not open for further replies.

2Plan

MIS
Mar 29, 2005
55
US
I would like to run a query that changes the value "00:02" to "24:02" and "01:04" to "25:04"

These values have a text data type.

"00:02" represents 12:02AM
"01:04" represents 1:04AM

Thanks, for any assistance.
 
Hows this work?

Time: Cstr(Cint(Left([YourFieldName],2)) + 12) & Right([YourFieldName],3)



-Pete
 
This code changes "00:12" to "12:12" instead of "24:12"
and "01:25" to "13:11" instead of "25:11
 
My apologies:

Time: Cstr(Cint(Left([YourFieldName],2)) + 24) & Right([YourFieldName],3)



-Pete
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top