Time conversion seconds to MM/SS
กระทู้เก่าบอร์ด อ.สุภาพ ไชยา

 230   1
URL.หัวข้อ / URL
Time conversion seconds to MM/SS

มีคนถามไว้ที่ 
http://www.quicktechusa.com/msgboard/wwwboard.pl?read=18227 
 
เนื้อหาของคำถามมีดังนี้ 
 
 
I use the following format below as a record source for a field on a form to give me the AvgCallTotalInSeconds in minutes and seconds. The problem is that it gives me the seconds in 1/10th of a minute. How can I convert the AvgCallTotalInSeconds to MM/SS? Thanks for the help.  
 
=[AvgCallTotalInSeconds]/60  
 
 
 
"ต้องการหาจำนวน นาที และวินาที จากจำนวน วินาที ที่มีให้" 
 
เราก็ต้องใช้ Mod และ \ เข้าช่วย ดังนี้ 
 
 
Function Second2Min(intI As Integer) As String 
Dim Minute As Integer, Second As Integer 
Minute = intI \ 60 
Second = intI Mod 60 
Second2Min = Minute & ":" & Second 
End Function 
 
 
เช่น Second2Min(119) จะได้ 1:59 ครับ

1 Reply in this Topic. Dispaly 1 pages and you are on page number 1

1 @R06498
   
@ ประกาศใช้งานเว็บบอร์ดใหม่ => บอร์ดเรียนรู้ Access สำหรับคนไทย
แล้วจะใส่ลิ้งอ้างอิงมาที่โพสต์เก่านี้หรือไม่ก็ตามสะดวกครับ
Time: 0.0813s