Results 1 to 4 of 4

Thread: ACCESS: Not Null Question

  1. #1
    Board Regular gheyman's Avatar
    Join Date
    Nov 2005
    Location
    Orlando, FL USA
    Posts
    1,632
    Post Thanks / Like
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    Question ACCESS: Not Null Question

    I want to change this to Not Null from Is Null. Any help is appreciated

    TAT: IIf([PDIR Completed] Is Null,DateDiff("d",[PDIR Due Date],[PDIR Completed],"")

    Thanks for the help!
    G Heyman
    Northrop Grumman - Laser Systems'
    Apopka, FL

  2. #2
    MrExcel MVP
    Moderator
    xenou's Avatar
    Join Date
    Mar 2007
    Location
    Clev. OH, USA
    Posts
    16,474
    Post Thanks / Like
    Mentioned
    11 Post(s)
    Tagged
    1 Thread(s)

    Default Re: ACCESS: Not Null Question

    I think just add the not:

    Code:
    TAT: IIf([PDIR Completed] Is Not Null,DateDiff("d",[PDIR Due Date],[PDIR Completed],"")

    Using: Office 2010/Win7 (work) Office 2010/Win7 (home)

    You are rich in proportion to the number of things you can let alone.
    -- Henry David Thoreau

  3. #3
    Board Regular gheyman's Avatar
    Join Date
    Nov 2005
    Location
    Orlando, FL USA
    Posts
    1,632
    Post Thanks / Like
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    Default Re: ACCESS: Not Null Question

    What would really help is an "IIF" neither was null then DateDiff("d",[PDIR Due Date],[PDIR Completed]
    G Heyman
    Northrop Grumman - Laser Systems'
    Apopka, FL

  4. #4
    Board Regular gheyman's Avatar
    Join Date
    Nov 2005
    Location
    Orlando, FL USA
    Posts
    1,632
    Post Thanks / Like
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    Default Re: ACCESS: Not Null Question

    Thanks Xenou!

    And I got the "And" statement

    IIf(([PDIR Completed] Is Not Null) And ([PDIR Submission Date] Is Not Null),DateDiff("d",[PDIR Submission Date],[PDIR Completed]),"")
    G Heyman
    Northrop Grumman - Laser Systems'
    Apopka, FL

Some videos you may like

User Tag List

Tags for this Thread

Like this thread? Share it with others

Like this thread? Share it with others

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •