I did the following 4 formula's in crystal though they probably could be combined
--Hour--
if len(ToText({IMINVTRX_SQL.trx_tm},0,"",""

) = 6 then
tonumber(left(ToText({IMINVTRX_SQL.trx_tm},0,"",""

,2)) else
tonumber(left(ToText({IMINVTRX_SQL.trx_tm},0,"",""

,1))
--Minute--
if len(ToText({IMINVTRX_SQL.trx_tm},0,"",""

) = 6 then
tonumber(mid(ToText({IMINVTRX_SQL.trx_tm},0,"",""

,3,2)) else
tonumber(mid(ToText({IMINVTRX_SQL.trx_tm},0,"",""

,2,2))
--Second--
if len(ToText({IMINVTRX_SQL.trx_tm},0,"",""

) = 6 then
tonumber(mid(ToText({IMINVTRX_SQL.trx_tm},0,"",""

,5,2)) else
tonumber(mid(ToText({IMINVTRX_SQL.trx_tm},0,"",""

,4,2))
--Time--
Time({@Hour},{@Minute},{@Second})
Kevin Scheeler