Results 1 to 3 of 3
  1. #1
    2 Star Lounger
    Join Date
    Mar 2004
    Posts
    129
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Access to Excel (2003)

    I'm using ADO to pull an Access file into Excel. I'm also trying to use a SQL statement to filter the data. There seems to be a problem with one particular column of data: there are empty cells. If I try to filer using this column, the filter doesn't seem to recognize the empty cells. Is there a way to get the SQL statement to differentiate between the empty and non-empty cells?

  2. #2
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts

    Re: Access to Excel (2003)

    It's not clear what exactly you want. You can use Is Null or Is Not Null in SQL to filter blank or non-blank values, respectively. For example

    SELECT [Field1], [Field2] FROM [MyTable] WHERE [Field1] Is Not Null

  3. #3
    2 Star Lounger
    Join Date
    Mar 2004
    Posts
    129
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Access to Excel (2003)

    That's what I needed. Thanks.

Posting Permissions

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