Results 1 to 6 of 6
  1. #1
    dizy8 is offline Novice
    Windows 10 Access 2016
    Join Date
    Dec 2021
    Posts
    20

    Report Cannot Sort on Date Field


    Hi All,

    I have a query and the sorting is just fine. But when a make a report out of this query and sort it, it doesnt follow at all. Even when i tried to sort it in ascending or descending order. I just want to sort the field [SubDate] but as you can see in the report below, it doesnt follow. Data type of [SubDate] field is a date/time. Please help.
    Click image for larger version. 

Name:	1.jpg 
Views:	17 
Size:	60.1 KB 
ID:	52581

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows 11 Access 2021
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,770
    Ooops, accidentally duplicated post.
    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.

  3. #3
    June7's Avatar
    June7 is offline VIP
    Windows 11 Access 2021
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,770
    Use report Order By property or Sorting & Grouping features in design.
    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.

  4. #4
    Join Date
    Jan 2017
    Location
    Swansea,South Wales,UK
    Posts
    6,556
    Reports taken NO notice of the incoming data sort order.
    Need to do as June7 advises.
    Please use # icon on toolbar when posting code snippets.
    Cross Posting: https://www.excelguru.ca/content.php?184
    Debugging Access: https://www.youtube.com/results?sear...bug+access+vba

  5. #5
    June7's Avatar
    June7 is offline VIP
    Windows 11 Access 2021
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,770
    Actually, report can comply with ORDER BY in query but only for very simple reports. I just tested this in a new report and sort was applied, even on date DESCENDING. I tried same query as source for an older report which really looks just as simple and the sort isn't working.

    So wouldn't rely on it, use report design features to set sorting.
    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. #6
    dizy8 is offline Novice
    Windows 10 Access 2016
    Join Date
    Dec 2021
    Posts
    20
    Hi All! Thank you very much for all your reply! problem solved!

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Cannot perform alpha sort for lookup field.
    By snowboarder234 in forum Access
    Replies: 6
    Last Post: 05-08-2018, 07:19 AM
  2. cannot sort report by product
    By wolfm in forum Reports
    Replies: 1
    Last Post: 12-15-2017, 01:04 PM
  3. Cannot get field to sort alphabetically.
    By NCSue0514 in forum Reports
    Replies: 8
    Last Post: 08-14-2017, 12:38 PM
  4. sort filter, doesn't sort everything
    By deso in forum Queries
    Replies: 4
    Last Post: 01-25-2013, 05:27 AM
  5. How to sort by three sort orders
    By captgnvr in forum Access
    Replies: 4
    Last Post: 11-09-2009, 07:30 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