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

Convert a numeric field to Text field

Status
Not open for further replies.

tamer64

IS-IT--Management
Aug 27, 2007
120
US
Hello! I have a numeric field [Hours] in a table (52, 51, 50, 49...). I need to convert that to a text field to like this: 52:00:00 AM, 51:00:00 AM and so on

Any ideas on how to do this?

Thank you in advance for assistance you can provide!
 
Correction to the output. I actually need to convert 52:00 and so on.
 
Cancel the the call for help! Format(Right(CStr([Hours]),Len(CStr([Hours]))+2) & ":" & Right(CStr("00"),2),"Short Time")
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top