Oct 29, 2008 #1 steve728 Programmer Mar 16, 2003 536 US I want to convert a field's string content of "6:00" to "18:00"). Do I use the use the format() function? Will someone show me how to do this?? Thanks in advance. Steve728
I want to convert a field's string content of "6:00" to "18:00"). Do I use the use the format() function? Will someone show me how to do this?? Thanks in advance. Steve728
Oct 29, 2008 #2 randy700 Programmer Sep 25, 2003 2,384 US Use an update query. Code: UPDATE myTable SET myField = "18:00" WHERE myField = "6:00" Randy Upvote 0 Downvote
Oct 29, 2008 Thread starter #3 steve728 Programmer Mar 16, 2003 536 US Great. I should have been more generally explicit. How do I turn whatever time is in the field to it's 24 hour equivalent? Thanks again, Steve728 Upvote 0 Downvote
Great. I should have been more generally explicit. How do I turn whatever time is in the field to it's 24 hour equivalent? Thanks again, Steve728
Oct 29, 2008 1 #4 missinglinq Programmer Feb 9, 2002 1,914 US You question was clear enough; Randy's having an off day. The general syntax is Format(YourTimeField,"hh:nn") To do the opposite would be Format(YourTimeField,"hh:nn am/pm") The Missinglinq Richmond, Virginia There's ALWAYS more than one way to skin a cat! Upvote 0 Downvote
You question was clear enough; Randy's having an off day. The general syntax is Format(YourTimeField,"hh:nn") To do the opposite would be Format(YourTimeField,"hh:nn am/pm") The Missinglinq Richmond, Virginia There's ALWAYS more than one way to skin a cat!
Oct 29, 2008 #5 S SkipVought Programmer Dec 4, 2001 47,492 US CAVEAT: The Format function returns a STRING rather than a DATE/TIME value. Skip, Just traded in my old subtlety... for a NUANCE! Upvote 0 Downvote
CAVEAT: The Format function returns a STRING rather than a DATE/TIME value. Skip, Just traded in my old subtlety... for a NUANCE!
Oct 30, 2008 #6 aperez54 Technical User Aug 12, 2008 77 CA Try Cdate(Format(YourTimeField,"hh:nn")) to turn it from string to date format if you're using it as date criteria. Upvote 0 Downvote
Try Cdate(Format(YourTimeField,"hh:nn")) to turn it from string to date format if you're using it as date criteria.