Page 2 of 2 FirstFirst 12
Results 16 to 22 of 22
  1. #16
    mcmcd99 is offline Advanced Beginner
    Windows 10 Access 2016
    Join Date
    Nov 2016
    Posts
    65
    Oh I see what it did. It doesn't actually store the time as a 24 hour clock. Was hoping it would store it like that so that they could easily edit it without having to erase all that extra stuff. Replacing 15:10 with 15:15 if need, instead of replacing 13:10:21 PM with 15:15 you know.

  2. #17
    davegri's Avatar
    davegri is online now Excess Access
    Windows 10 Access 2016
    Join Date
    May 2012
    Location
    Denver
    Posts
    3,741
    Open the tbl_AirTrafficLog in design view and set the property of tstime to short time.

  3. #18
    mcmcd99 is offline Advanced Beginner
    Windows 10 Access 2016
    Join Date
    Nov 2016
    Posts
    65
    Take two steps forward and one step back. Now my reports aren't sorting by date and time correctly
    I'm sorry to keep bothering you, but any suggestions?

  4. #19
    mcmcd99 is offline Advanced Beginner
    Windows 10 Access 2016
    Join Date
    Nov 2016
    Posts
    65
    sorting by tstime on the single date report is an easy fix, since it's only one day at a time. But on the month or complete ones, I'm not sure how to sort by both date and time so that it appears linear. I've tried [tsdate],[tstime] but that didnt' seem to do the trick.

  5. #20
    June7's Avatar
    June7 is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,771
    Set the sort criteria in report design, not in query. The rpt_date and rpt_month already have sort criteria for tsdate. I added a sort for tstime and it works.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  6. #21
    mcmcd99 is offline Advanced Beginner
    Windows 10 Access 2016
    Join Date
    Nov 2016
    Posts
    65
    That did it. You're the best.

  7. #22
    Join Date
    Apr 2017
    Posts
    1,792
    In your table tbl_AirTrafficLog you have 2 fields - Date and Time (a bad choice of field names, btw.). They both are really datetime fields, and contain same date and time, but are formatted differently.

    There is no reason to keep 2 different fields with same information. Scrap the one, and format remaining (name it something like FlightTime or whatever you like more) one as datetime, p.e. as "mm/dd/yyyy hh:mm".
    In form for air Traffic Log leave also a single field.
    In reports either use textbox with this datetime field as source, formatted in same way as in table, or hide it and use 2 unbound forms with source as
    Code:
    = INT([FlightTime])>
    formatted as date ("mm/dd/yyyy"), and
    Code:
    = FlightTime - INT(FlightTime)
    formatted as time ("hh:mm").

    For any filter conditions also use
    Code:
    INT(FlightTime) = YourConditionDate

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

Similar Threads

  1. Replies: 7
    Last Post: 03-08-2016, 01:11 PM
  2. Replies: 9
    Last Post: 07-17-2015, 10:20 AM
  3. Replies: 9
    Last Post: 06-26-2014, 03:10 AM
  4. Switchboard buttons don't work
    By ComputerPower in forum Access
    Replies: 1
    Last Post: 02-17-2012, 07:59 PM
  5. Buttons doesn't work in Subforms
    By fedesc in forum Access
    Replies: 6
    Last Post: 09-25-2011, 12:58 AM

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