Query "Is Null" not working with date

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Matt Sackley
    New Member
    • Nov 2011
    • 1

    Query "Is Null" not working with date

    I've made a query using QBE in Access 2010. I need to filter out all the results that do not have a value for Exception_Date_ Completed.

    I used the Is Null criteria and it is just giving me a blank date sheet view when I hit run. Any help would be appreciated!

    Below is the SQL for the statement:

    Code:
    SELECT Machine.Machine_Plant, Exception.RptNum, Exception.Exception_Date_Entered, Machine.Machine_ID, Machine.Machine_Dept, Machine.Machine_Location, Exception.Exception_Problem_Description, Exception.Exception_Completed_Date
    FROM Machine INNER JOIN (KeyWord INNER JOIN ([Exception] INNER JOIN ExceptionWork ON Exception.RptNum = ExceptionWork.RptNum) ON KeyWord.KeyWord = Exception.KeyWord) ON Machine.Machine_ID = Exception.Machine_ID
    WHERE (((Exception.Exception_Completed_Date) Is Null));
    Last edited by NeoPa; Nov 30 '11, 02:52 AM. Reason: Added mandatory [CODE] tags for you
  • Rabbit
    Recognized Expert MVP
    • Jan 2007
    • 12517

    #2
    If you're trying to filter out the dates with no value, then you need to use IS NOT NULL not IS NULL.

    Comment

    Working...