+ Reply to Thread
Results 1 to 1 of 1

SQL query using ADO, but the query is not pulling all the data

  1. #1
    Forum Expert
    Join Date
    12-15-2009
    Location
    Chicago, IL
    MS-Off Ver
    Microsoft Office 365
    Posts
    3,177

    SQL query using ADO, but the query is not pulling all the data

    Update: Problem Fixed. Didn't realize ADO only supports up to MS office 2003.

    Having this really weird problem that I couldn't figure out. I create a SQL userform where a user can just enter SQL query in Excel directly. But for some reason when I do a SELECT * statement it is not pulling all the data from the excel worksheet.

    Basically, my code is treating Excel workbook like a MS Access database, each worksheet is like a "table". Here is where my problem comes. In RawData worksheet, I have a total # of items of 110,380, but when I do a SELECT * FROM [RawData$] statement, the result only gives me 44,844 items rather than 110,380 the entire population.

    I have my work in process and the code below. Would really appreciate if anyone can guide me to figure out what caused the issue.

    Thanks,

    PS: You can open the UserForm by Right click your mouse and select SQL Query shortcut.
    Last edited by JieJenn; 03-01-2012 at 02:44 PM.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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