Results 1 to 3 of 3
  1. #1
    swenger is offline Competent Performer
    Windows 10 Access 2016
    Join Date
    Mar 2016
    Posts
    151

    Sort ordering not working


    I have 2 tables. Table 1 is Header information, Table 2 is Details. I have a report based on Table 1 and then I created a query on Table 2 where I sorted the detail by a filed called order. I created a report off this query. When I run this report the information comes in the correct order, but when I attach this as a subreport to the report with the Header using order number as the link, the details of the report don't come in the correct order as the query or subreport.

    I can't figure out why this is

  2. #2
    orange's Avatar
    orange is offline Moderator
    Windows 10 Access 2010 32bit
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,870
    Reports have their own sorting and grouping, and will not necessarily use the order from the query.
    Try setting the order you want in the report.

    Good luck.

  3. #3
    swenger is offline Competent Performer
    Windows 10 Access 2016
    Join Date
    Mar 2016
    Posts
    151
    Thanks. I added [order] to the order by property in the subreport. This fixed the problem, but I am perplexed why since the subreport was always sorting properly when ran alone. Only when ran the main report which included the subreport was there an issue.

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

Similar Threads

  1. Sort DESC not working
    By accessnewbie352 in forum Macros
    Replies: 6
    Last Post: 01-15-2015, 02:27 PM
  2. Replies: 1
    Last Post: 04-07-2014, 02:59 AM
  3. Sort function not working correctly
    By kristyspdx in forum Reports
    Replies: 2
    Last Post: 10-09-2012, 11:04 AM
  4. Ordering System
    By Gustavo in forum Access
    Replies: 1
    Last Post: 11-21-2010, 02:16 AM
  5. Replies: 5
    Last Post: 06-30-2009, 09: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