VBA - Create ADODB.Recordset from the contents of a spreadsheet

Posted by robault on Stack Overflow See other posts from Stack Overflow or by robault
Published on 2010-03-20T19:58:49Z Indexed on 2010/03/20 20:01 UTC
Read the original article Hit count: 443

Filed under:
|
|
|

Hello,

I am working on an Excel application that queries a SQL database. The queries can take a long time to run (20-40 min). If I've miss-coded something it can take a long time to error or reach a break point. I can save the results to a sheet fine, it's when I am working with the record sets that things can blow up.

Is there a way to load the data into a ADODB.Recordset when I'm debugging to skip querying the database (after the first time)?

Would I use something like this?

http://stackoverflow.com/questions/2086234/query-excel-worksheet-in-ms-access-vba-using-adodb-recordset

© Stack Overflow or respective owner

Related posts about vba

Related posts about excel