Results 1 to 5 of 5
  1. #1
    system243trd is offline Novice
    Windows 2K Access 2003
    Join Date
    Nov 2011
    Posts
    27

    Problem sorting date on query

    Hi,



    I have the following query

    ID
    Date
    Note

    I have sorted the query showing date in descending order. When I run the query it works fine but if I save it and then rerun it. The query is then sorted in ID ascending order.

  2. #2
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,521
    What is the SQL of the query? It should have an ORDER BY clause, which I suspect it doesn't. In design view, the Sort row should have an entry in it on the date field. By the way, "Date" is not a good field name, as Access might confuse it with the built-in Date() function.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  3. #3
    system243trd is offline Novice
    Windows 2K Access 2003
    Join Date
    Nov 2011
    Posts
    27
    Just clicked on the SQL - it does have an order by in the query.

  4. #4
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,521
    And you save it that way? I've never seen a saved query lose a part like that.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  5. #5
    system243trd is offline Novice
    Windows 2K Access 2003
    Join Date
    Nov 2011
    Posts
    27
    Im losing the plot it is in order!!! Sorry

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

Similar Threads

  1. Sorting by date
    By kaledev in forum Queries
    Replies: 2
    Last Post: 03-16-2011, 12:32 PM
  2. Sorting date columns in query
    By madcreek in forum Queries
    Replies: 3
    Last Post: 06-02-2010, 07:45 AM
  3. Date Sorting
    By sfoot0309 in forum Queries
    Replies: 1
    Last Post: 04-25-2010, 09:59 PM
  4. Sorting By Date!
    By Pirate in forum Access
    Replies: 0
    Last Post: 07-19-2007, 02:42 PM
  5. Is this a Query or Sorting problem?
    By bwrobel in forum Queries
    Replies: 2
    Last Post: 07-14-2006, 08:15 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