+ Reply to Thread
Results 1 to 3 of 3

SQL against Excel Table returns nothing when "Where [ColumnName] = ""

  1. #1
    Registered User
    Join Date
    08-30-2010
    Location
    Mpls, MN
    MS-Off Ver
    Excel 2003
    Posts
    17

    SQL against Excel Table returns nothing when "Where [ColumnName] = ""

    I have a sub that filters a table from one worksheet to a new sheet using SQL.

    The SQL statement: SELECT * FROM [STAMP$] WHERE [Approver_ID] = "my name"; WORKS.

    The SQL statement SELECT * FROM [STAMP$] WHERE [Approver_ID] = ""; DOES NOT WORK. (returns an empty sheet)

    What syntax would I use to get the blank rows from the table I am running the SQL against.

    Thanks in advance.
    Last edited by rgi; 11-19-2010 at 04:27 PM.

  2. #2
    Forum Contributor
    Join Date
    08-09-2005
    MS-Off Ver
    2003 & 2007
    Posts
    111

    Re: SQL against Excel Table returns nothing when "Where [ColumnName] = ""

    Just a guess here. Have you tried...
    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    08-30-2010
    Location
    Mpls, MN
    MS-Off Ver
    Excel 2003
    Posts
    17

    re: SQL against Excel Table returns nothing when "Where [ColumnName] = ""

    That worked where = Null did not!

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Bookmarks

Posting Permissions

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

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1