Results 1 to 2 of 2
  1. #1
    roar58 is offline Advanced Beginner
    Windows 7 64bit Access 2010 32bit
    Join Date
    Feb 2012
    Location
    Kristiansand, Norway
    Posts
    32

    Sort order in a sub form

    Hi!
    I have a subform with records from a table. I want the records in a certain sort order when I open the subform. If I will sort a true/untrue field, then it sorts the true fields first. But if I want to sort by a field with values, it starts with the records with no value, and then comes the values in no particularly sort order. Let's say that I have the values 1,2 and 3 in the field and will sort the records in that order. What would be the expression in the sort order property (or arrange by property) (I have a Norwegian version of Access) in the form control? Let's say the field has the name [status].
    Greetings from Roar58

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,921
    Don't really understand your issue. Sorting is fairly easy and straightforward.

    Sort is defined with the ORDER BY clause of query or the ORDER BY property of the form.

    In query would be: ORDER BY [Status]
    or
    ORDER BY [Status] DESC

    In ORDER BY property, simply: [Status]
    or
    [Status] 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.

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

Similar Threads

  1. Sort order by Dlookup field
    By 1Giggles in forum Forms
    Replies: 1
    Last Post: 02-22-2012, 02:13 PM
  2. Report will order/sort 4 columns but not 5. Why?
    By TomHolden in forum Reports
    Replies: 6
    Last Post: 12-17-2011, 04:25 PM
  3. Multivalue field sort order
    By bdaun in forum Forms
    Replies: 0
    Last Post: 09-05-2011, 12:27 PM
  4. Sort Order Variation with nulls
    By jonsuns7 in forum Queries
    Replies: 1
    Last Post: 10-09-2009, 03:10 AM
  5. Access 2003, sort order property of a form
    By Rick West in forum Forms
    Replies: 11
    Last Post: 09-17-2009, 08:28 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