Results 1 to 3 of 3
  1. #1
    evil44 is offline Novice
    Windows 7 64bit Access 2013
    Join Date
    Jan 2016
    Posts
    2

    Need Ranking to Ignore Null

    I've set up a query to create rankings for the teams (Team_ID, primary key) by the score (Amaze_Score). The problem I'm encountering is that it's assigning a rank of "1" to all my null score values. How can I change the text below to ignore null values in the Amaze_Score field?

    Click image for larger version. 

Name:	Amaze_Rank_query.JPG 
Views:	12 
Size:	37.6 KB 
ID:	23497
    Text in ranking field is:


    Amaze_Rank: (SELECT Count([Team_ID]) AS HowMany FROM Teams_Table AS Dupe WHERE Dupe.Amaze_Score > Teams_Table.Amaze_Score)+1

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,896
    Maybe:

    Amaze_Rank: (SELECT Count([Team_ID]) AS HowMany FROM Teams_Table AS Dupe WHERE Dupe.Amaze_Score > Teams_Table.Amaze_Score)+IIf([Amaze_Score] Is Null,0,1)
    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
    evil44 is offline Novice
    Windows 7 64bit Access 2013
    Join Date
    Jan 2016
    Posts
    2
    It seems so simple. How'd I miss that? Thanks, June7!

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

Similar Threads

  1. Lowercase and ignore
    By rmd62163 in forum Access
    Replies: 7
    Last Post: 07-31-2013, 06:35 PM
  2. Replies: 3
    Last Post: 05-10-2013, 10:49 PM
  3. Search to ignore null fields
    By tommy93 in forum Queries
    Replies: 10
    Last Post: 02-07-2012, 10:58 AM
  4. Ranking (Look for previous ranking)
    By leobear in forum Queries
    Replies: 3
    Last Post: 01-10-2012, 05:58 PM
  5. How to Ignore Err 2501
    By Jojojo in forum Reports
    Replies: 3
    Last Post: 11-11-2011, 06:30 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