H hardrock Registered User. Local time Today, 12:59 Joined Apr 5, 2007 Messages 166 Sep 7, 2010 #1 Hi all, i wonder if you can help me out with a little problem. A table that stores order history on our ERP system at work stores the time as seconds past midnight. On that basis, in VBA code, how would i express the number 60915 as hh:mm:ss thanks.
Hi all, i wonder if you can help me out with a little problem. A table that stores order history on our ERP system at work stores the time as seconds past midnight. On that basis, in VBA code, how would i express the number 60915 as hh:mm:ss thanks.
RuralGuy AWF VIP Local time Today, 05:59 Joined Jul 2, 2005 Messages 13,819 Sep 8, 2010 #2 How about: Format("." & YourField,"hh:mm:ss")
W WayneRyan AWF VIP Local time Today, 12:59 Joined Nov 19, 2002 Messages 7,120 Sep 8, 2010 #3 hardrock, Just add the seconds to the beginning of the the day's date: Format(DateAdd("s", 60915, Date), "hh:mm:ss") In a query: NewField: Format(DateAdd("s", [TimeInSeconds], [YourDate]), "hh:mm:ss") This assumes that [YourDate] is the date worked and is kept along with the time. hth, Wayne
hardrock, Just add the seconds to the beginning of the the day's date: Format(DateAdd("s", 60915, Date), "hh:mm:ss") In a query: NewField: Format(DateAdd("s", [TimeInSeconds], [YourDate]), "hh:mm:ss") This assumes that [YourDate] is the date worked and is kept along with the time. hth, Wayne