Results 1 to 5 of 5
  1. #1
    Paul H's Avatar
    Paul H is offline Expert
    Windows XP Access 2010 32bit
    Join Date
    Sep 2011
    Location
    Richmond, VA
    Posts
    591

    Complex Sorts in Datasheet View

    I am presenting the option to users, since they are used to working in Excel, to view the data as a datasheet. It looks great, but they would like to be able to sort in different columns like they do in Excel. Outside of giving them a query to play with and maybe screw up, is there a way to provide this to them. I thought about building an Order By string for the form, but it got a little complicated when I considered the sort order and various ascendding and descending options.



    I don't want to beat myself up over this if I don't have to (i.e. quick and dirty if possible).

    Thanks in advance.

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,622
    Datasheet view has shortcut menu for sort and filter. Click the little triangle next to field name.
    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
    Paul H's Avatar
    Paul H is offline Expert
    Windows XP Access 2010 32bit
    Join Date
    Sep 2011
    Location
    Richmond, VA
    Posts
    591
    June,

    It doesn't seem to take multi column sorts. If I sort on a second column it preempts the first sort. I want to be able to provide multi-level sorts.
    See next comment for more detail.

  4. #4
    Paul H's Avatar
    Paul H is offline Expert
    Windows XP Access 2010 32bit
    Join Date
    Sep 2011
    Location
    Richmond, VA
    Posts
    591
    I think I see how the heirarchy works, the last sort applied takes precedence. If I click on Store, then Date, the primary sort is on Date, secondary is on Store. If I click on Date then Store it is reversed.

    Is this correct?


    Is there a way to remove all sorts then start again?
    I found the answer to this question by putting a button to run this code.

    Code:
    Me.subfrmResearch_TableView.Form.OrderByOn = False
    I think I'm in the clear unless you have anything else.

  5. #5
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,622
    I'll take your word on that. I've never thought much about how that quick sort 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.

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

Similar Threads

  1. Replies: 2
    Last Post: 01-28-2014, 10:13 PM
  2. Replies: 3
    Last Post: 08-18-2013, 09:14 PM
  3. Replies: 6
    Last Post: 11-21-2012, 05:10 PM
  4. Replies: 16
    Last Post: 09-12-2012, 08:39 AM
  5. Sort - of sorts
    By Needlejockey in forum Reports
    Replies: 5
    Last Post: 04-13-2012, 01:51 PM

Tags for this Thread

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