Results 1 to 3 of 3
  1. #1
    DMT Dave is offline VIP
    Windows 10 Access 2016
    Join Date
    May 2018
    Posts
    1,191

    Recordset Order By

    Hi Guys, is there a way i can order a recordset ordering 2 fields ?, i want to order DelTo Ascending And ShipmentDate Descending ??? much appreciate



    Code:
    Set rs2 = CurrentDb.OpenRecordset("SELECT tblEdit.DelTo, tblEdit.ShipmentDate, tblEdit.Town, tblEdit.SONumber, tblEdit.PONumber, tblEdit.ItemType, tblEdit.ItemNo, tblEdit.Status FROM tblEdit WHERE Customer = '" & Cust & "'" & " And Status = '" & MyStatus & "'" & " Or Status = '" & MyStatus2 & "'" & " Or Status = '" & MyStatus3 & "'" & " And Source = '" & Src & "' ORDER BY DelTo;")

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,902
    ORDER BY DelTo, ShipmentDate DESC
    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
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,524
    very easy to do in a query.

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

Similar Threads

  1. order file and order line Selection -raw data
    By BeneDor in forum Import/Export Data
    Replies: 5
    Last Post: 09-14-2017, 04:46 PM
  2. Replies: 2
    Last Post: 03-07-2016, 05:02 PM
  3. Replies: 3
    Last Post: 02-09-2016, 04:36 PM
  4. Replies: 6
    Last Post: 12-03-2013, 11:14 PM
  5. Replies: 2
    Last Post: 03-08-2012, 12:59 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