Results 1 to 3 of 3
  1. #1
    shenry16 is offline Novice
    Windows XP Access 2003
    Join Date
    Jan 2010
    Posts
    5

    Help with query finding records with Nulls in them

    I have a table that in many of the fields there can be NULL values. I created a query on that specific table to use in a form where I send a parameter to one or multiple fields to filter my data. Problem is I cannot get the query to work correctly all the time on every field. Sometimes the record with NULL values gets returned and other times it does not.

    Form:



    Bug Product Risk Status Title AssignedTo

    I have numerous records where Risk or Product or Status may be NULL for whatever reason. When I send in a parameter value for Bug the records with NULL in either of those fields doesnt get returned, but if there is a NULL in AssignedTo they are returned no problem. Attached is the query. Due to the data we contain I cannot submit the table view, but there is nothing different between any of the fields that I can tell. If more info on the query is needed please ask.
    Last edited by shenry16; 01-14-2010 at 01:08 PM.

  2. #2
    llkhoutx is offline Competent Performer
    Windows Vista Access 2007
    Join Date
    Jan 2010
    Location
    Houston, Texas USA
    Posts
    373
    Build your flter testing each filed being Nul, "OR"ing each field in the test, e.g.

    Code:
    isnull(field1) OR isnull(field2) . . . 

  3. #3
    shenry16 is offline Novice
    Windows XP Access 2003
    Join Date
    Jan 2010
    Posts
    5
    I tried your solution likhoutx and although it didnt solve my problem it gave me an idea as far as doing the filtering dynamically instead of trying to use a query. Thanks for the thought provoking idea though. Much appreciated!!

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

Similar Threads

  1. Sort Order Variation with nulls
    By jonsuns7 in forum Queries
    Replies: 1
    Last Post: 10-09-2009, 03:10 AM
  2. Replies: 5
    Last Post: 08-07-2009, 05:23 PM
  3. GetRows - Invalid Use of Nulls
    By Wannabe_Pro in forum Programming
    Replies: 3
    Last Post: 07-22-2009, 07:07 AM
  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