Results 1 to 3 of 3
  1. #1
    3 Star Lounger
    Join Date
    Jan 2001
    Posts
    294
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Time conversion seconds to MM/SS (Access97)

    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

  2. #2
    3 Star Lounger
    Join Date
    Jan 2001
    Location
    Edmonton, Alberta, Canada
    Posts
    326
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Time conversion seconds to MM/SS (Access97)

    format([AvgCallTotalInSeconds] 60,"00") & "/" & format([AvgCallTotalInSeconds] mod 60,"00").

    If you don't need two digits before and after the / , then
    [AvgCallTotalInSeconds] 60 & "/" & [AvgCallTotalInSeconds] mod 60
    will do.

  3. #3
    Uranium Lounger
    Join Date
    Jan 2001
    Location
    South Carolina, USA
    Posts
    7,295
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Time conversion seconds to MM/SS (Access97)

    Almost the same answer as the one I gave to the same question in the Excel forum:

    Format([AvgCallTotalInSeconds] 86400,"[mm]:ss")

    I don't know if the brackets around the mm work like they do in Excel. If not, you might have to use "mm:ss" or "hh:mm:ss".
    Legare Coleman

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •