L
Loane Sharp
Hi there
I'm using a piece of VBA code to connect to an Access database via ADO from
within Excel.
I'm using a For ... Next loop to access the database many times, and my
queries have a very similar SQL statement structure.
I'm opening and closing the connection to the database with each loop, which
must be very inefficient!!! Certainly the procedure takes an enormous amount
of time to run.
There must be a way to access the database, keeping the connection open?!
I've come across the .Restartable property / .Requery method in the DAO
context, which seems to be the thing I need, but which isn't supported with
ADO.
Please help
Best regards
Loane
I'm using a piece of VBA code to connect to an Access database via ADO from
within Excel.
I'm using a For ... Next loop to access the database many times, and my
queries have a very similar SQL statement structure.
I'm opening and closing the connection to the database with each loop, which
must be very inefficient!!! Certainly the procedure takes an enormous amount
of time to run.
There must be a way to access the database, keeping the connection open?!
I've come across the .Restartable property / .Requery method in the DAO
context, which seems to be the thing I need, but which isn't supported with
ADO.
Please help
Best regards
Loane