Results 1 to 6 of 6
  1. #1
    New Lounger
    Join Date
    Mar 2001
    Location
    UK
    Posts
    8
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Time Format in Acces2k (2000)

    can anyone tell me the correct way to display a field in min - sec - hun format in access 2k? It does not matter what the separator is

  2. #2
    Gold Lounger
    Join Date
    Feb 2001
    Location
    Sint Niklaas, Belgium
    Posts
    2,778
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Time Format in Acces2k (2000)

    Format([DateTimeField],"mm:ss")
    Your field has to be of Date/Time type.
    Francois

  3. #3
    New Lounger
    Join Date
    Mar 2001
    Location
    UK
    Posts
    8
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Time Format in Acces2k (2000)

    the min and sec are fine but the hun does not show - that's my problem

  4. #4
    Star Lounger
    Join Date
    Dec 2001
    Location
    Birmingham, Alabama USA
    Posts
    95
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Time Format in Acces2k (2000)

    Hmmmm ......

    I've been trying to think ..... what is "hun"?

    If you are referring to hundredths of a second, then you have a problem. Access does not return this. The smallest increment for a Date/Time value is "seconds".

    You may be able to do this with code using the Timer built into a form.

    HTH
    RDH
    Ricky Hicks
    Microsoft MVP
    Birmingham, Alabama USA

  5. #5
    Plutonium Lounger
    Join Date
    Dec 2000
    Location
    Sacramento, California, USA
    Posts
    16,775
    Thanks
    0
    Thanked 1 Time in 1 Post

    Re: Time Format in Acces2k (2000)

    Take a look at this post and see if it helps. Be warned that this code displays the "hundreds" as a two-digit value, so you may have to play with it.
    Charlotte

  6. #6
    Gold Lounger
    Join Date
    Feb 2001
    Location
    Sint Niklaas, Belgium
    Posts
    2,778
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Time Format in Acces2k (2000)

    You could use a single type field and store the time as a number of seconds but you'll have to do all the calculating and formatting yourself.

    See <A target="_blank" HREF=http://www.wopr.com/cgi-bin/w3t/showthreaded.pl?Cat=&Board=acc&Number=98819&page=& view=&sb=&o=&vc=1#Post98819>this post</A> for more information.
    Francois

Posting Permissions

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