Page 2 of 2 FirstFirst 12
Results 16 to 20 of 20
  1. #16
    moke123's Avatar
    moke123 is online now Me.Dirty=True
    Windows 7 32bit Access 2010 32bit
    Join Date
    Oct 2012
    Location
    Ma.
    Posts
    1,879
    I set the table field to long time with a mask of long time. I also set the control on the form to a long time format with a longtime mask and it works for me.
    Both show 24 hr time.



    edit Just noticed the OP was 8 years ago and thought I was answering an old post for a minute.
    You should have started a new post and reference this one if needed.
    Attached Files Attached Files

  2. #17
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,652
    Quote Originally Posted by Etoimos View Post
    Okay. On my subsequent forms I would still be able to apply a format that would show the time on them in military time even if the time in the table was standard time correct?
    Yes, as I said it's all just formatting. No matter the format, the value is saved as a double. For example, this moment in time is:

    ?cdbl(now())
    43934.5880671296

    The integer portion is the number of days since the seed date, which if memory serves is 1/1/1900 or something like that. The decimal portion is the fractional value of the time. 6am is .25, noon is .5, etc. No matter what you might see in the table or on a form/report, what's stored is 43934.5880671296 . You can format it any way you want on forms/reports, and they can show different formats as needed. By the way, if you only enter/save a time value, it would be saved like 0.5880671296.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  3. #18
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,652
    Sorry moke, your post was on page 2 and I didn't realize there was another page.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  4. #19
    moke123's Avatar
    moke123 is online now Me.Dirty=True
    Windows 7 32bit Access 2010 32bit
    Join Date
    Oct 2012
    Location
    Ma.
    Posts
    1,879
    No problem. I thought this was an 8 years old post cause you answered it back then too.

  5. #20
    Etoimos is offline Competent Performer
    Windows 7 64bit Access 2016
    Join Date
    Mar 2020
    Posts
    249
    Thanks guys.

Page 2 of 2 FirstFirst 12
Please reply to this thread with any new information or opinions.

Similar Threads

  1. Replies: 7
    Last Post: 08-04-2011, 07:49 PM
  2. Military Time
    By tshirttom in forum Access
    Replies: 3
    Last Post: 07-29-2011, 01:29 PM
  3. Hesitation production psychological SQL Blues
    By byterbit in forum Queries
    Replies: 1
    Last Post: 05-11-2011, 02:36 PM
  4. Time: How to increment time in form
    By dek in forum Forms
    Replies: 1
    Last Post: 05-07-2011, 12:47 AM
  5. Replies: 12
    Last Post: 02-22-2011, 03:39 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums