Results 1 to 4 of 4
  1. #1
    survivo01 is offline Advanced Beginner
    Windows XP Access 2010 32bit
    Join Date
    Jun 2011
    Posts
    71

    sort fields but make blank fields last instead of at beginning


    I have a query that lists people available for classes. There is ranking for who should go into the class first. However, some people have no ranking. Is there a way when I sort the field rank that the blank fields are at the end instead of at the beginning.
    ID Class time Rank
    100 ABe
    101 GED
    102 1a 1
    103 2a 2
    104 3a 2

  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
    Try adding a calculated field to the query:

    RankSort: Nz(Rank, 999)

    and put the primary sort on that.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  3. #3
    survivo01 is offline Advanced Beginner
    Windows XP Access 2010 32bit
    Join Date
    Jun 2011
    Posts
    71
    Thanks again worked perfectly. Do You have any suggestions on courses to take or books to read so I can learn more.

  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
    I haven't read any of the recent books, so I'm not in a position to recommend one. I learned most on forums like this one.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

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

Similar Threads

  1. Replies: 5
    Last Post: 06-11-2012, 08:47 AM
  2. Replies: 1
    Last Post: 03-12-2012, 02:41 AM
  3. no blank fields
    By imintrouble in forum Forms
    Replies: 2
    Last Post: 10-24-2011, 10:21 AM
  4. sort query by two fields, populate one
    By Dee300 in forum Queries
    Replies: 3
    Last Post: 09-15-2011, 03:22 PM
  5. Replies: 3
    Last Post: 03-05-2011, 12:46 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