VBA: Querying Access with Excel. Why so slow?

后端 未结 10 627
情话喂你
情话喂你 2021-01-18 03:24

I found this code online to query Access and input the data into excel (2003), but it is much slower than it should be:

Sub DataPull(SQLQuery, CellPaste)
Dim         


        
10条回答
  •  执念已碎
    2021-01-18 03:54

    I used your code and pulled in a table of 38 columns and 63780 rows in less than 7 seconds - about what I'd expect - and smaller recordsets completed almost instantaneously.

    Is this the kind of performance you are experiencing? If so, it is consistent with what I'd expect with an ADO connection from Excel to an MDB back-end.

    If you are seeing much slower performance than this then there must be some local environment conditions that are affecting things.

提交回复
热议问题