Results 1 to 4 of 4
  1. #1
    1943 is offline Novice
    Windows XP Access 2003
    Join Date
    Feb 2011
    Posts
    7

    Is Null

    In my qry, Is Null does not list fields that have a "0" value. It only shows the fields that are blank. I need it to include both situations. I have used <1 or Is Null and when I use "<" it list nothing. The fields are numeric and I have change them to text and same results.


    Can anyone help?

    DWH Access 2003

  2. #2
    NoellaG's Avatar
    NoellaG is offline VIP
    Windows 7 Access 2010 (version 14.0)
    Join Date
    Jun 2010
    Location
    Belgium
    Posts
    1,044
    Hi,

    instead of testing the numeric value itself, test the calculated value NZ([MyField],0) on being zero. The NZ function replaces a Null value with the value given in the second parameter.

    greetings
    NG

  3. #3
    1943 is offline Novice
    Windows XP Access 2003
    Join Date
    Feb 2011
    Posts
    7
    I tried that and it does not work either.

    Thanks,

    DWH

  4. #4
    orange's Avatar
    orange is offline Moderator
    Windows XP Access 2003
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,726
    Here is a fantastic reference on NULL.
    http://allenbrowne.com/casu-12.html

    Enjoy!

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

Similar Threads

  1. not null validation
    By kkukreja in forum Forms
    Replies: 7
    Last Post: 01-15-2011, 03:34 PM
  2. Null Check
    By jgelpi16 in forum Programming
    Replies: 2
    Last Post: 06-04-2010, 12:59 PM
  3. Invalid Use of Null!?!
    By Kipster1203 in forum Access
    Replies: 4
    Last Post: 05-13-2010, 06:09 AM
  4. IIF NULL not working
    By krutoigoga in forum Reports
    Replies: 6
    Last Post: 05-12-2010, 01:17 PM
  5. Replies: 6
    Last Post: 02-19-2010, 03:52 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