Results 1 to 4 of 4

Thread: Pulling A Field that is Null

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Jan 2000
    Location
    Greenville
    Posts
    73
    I am trying to pull a set of records in a Access DB where all fields of column X are NULL. I am using an ADO and trying to use the following SQL to pull the recordset but it does not like this, Any suggestions for this statement please:

    strQuery = "SELECT * FROM REPOINVENTORY WHERE DateTtlRcvD =" & vbnull

  2. #2
    Guru Aaron Young's Avatar
    Join Date
    Jun 1999
    Location
    Red Wing, MN, USA
    Posts
    2,177
    Try:
    Code:
    strQuery = "SELECT * FROM REPOINVENTORY WHERE DateTtlRcvD = NULL"

  3. #3

    Thread Starter
    Lively Member
    Join Date
    Jan 2000
    Location
    Greenville
    Posts
    73
    THAT DIDN'T WORK. THANKS THOUGH

  4. #4
    Frenzied Member Mark Sreeves's Avatar
    Join Date
    Nov 1999
    Location
    UK
    Posts
    1,845
    strQuery = "SELECT * FROM REPOINVENTORY WHERE DateTtlRcvD Is Null"
    Mark
    -------------------

Posting Permissions

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



Click Here to Expand Forum to Full Width