I'm pulling data into Excel 365 from Access 365 using a slightly modified version of this code. I'm using a list to loop through the script, changing the SQL string each time to pull new/different data and insert it into Excel. What I'm finding is that the first loop pulls the records correctly, but each subsequent loop comes back empty.
Do I have to close and open the connection to the database each time I send a query over?
I've tested the SQL string by Debug.Print then pasting it into a query in the database and it works, but yet when I run it from Excel, only the first query works. After the first loop, everything else comes back blank/empty.
Thanks!!
Matt
Do I have to close and open the connection to the database each time I send a query over?
I've tested the SQL string by Debug.Print then pasting it into a query in the database and it works, but yet when I run it from Excel, only the first query works. After the first loop, everything else comes back blank/empty.
Thanks!!
Matt