Results 1 to 2 of 2
  1. #1
    jonsuns7 is offline Novice
    Windows XP Access 2003
    Join Date
    Sep 2009
    Posts
    9

    Sort Order Variation with nulls

    I want to sort a column in ascending order, but I want the fields that are null to sort after the numbered fields. I was wondering if anyone may have come across a similar situation. Currently using Access 2003.



    Thank You ahead of time,

  2. #2
    dcrake's Avatar
    dcrake is offline Competent Performer
    Windows XP Access 2003
    Join Date
    Aug 2009
    Posts
    435
    The rules are Nothing comes before something and numbers come before letters

    So if you create a query and bring down the field you want to sort and use the following

    AliasName:Nz([FieldName],"zzzzzzz")

    Then sort ascending
    next bring down the original field and view in datasheet mode you should get what you want.

    Remember to hide the sort column as this is uneditable.

    David

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

Similar Threads

  1. Access 2003, sort order property of a form
    By Rick West in forum Forms
    Replies: 11
    Last Post: 09-17-2009, 08:28 PM
  2. GetRows - Invalid Use of Nulls
    By Wannabe_Pro in forum Programming
    Replies: 3
    Last Post: 07-22-2009, 07:07 AM
  3. Sort
    By mmp97 in forum Access
    Replies: 1
    Last Post: 12-18-2008, 10:14 PM
  4. Replies: 1
    Last Post: 07-14-2008, 12:15 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