shiv_379
02-13-2007, 02:55 AM
Hi all, long time no see! ;)
Wondering if you can help me at all, I have some VBA in Excel that is pulling a query from Access, however it is taking a long time to return despite that it doesn't take a terrible amount of time (<5m) to return if I run the query directly in Access. During this time Excel also chews the processor, taking between 70-100% of the cpu time.
I have tried the same query using an adodb.connection, adodb.command, and also adodb.command running a stored query passing in parameters. The same seems to happen to each!
During the time the query is running it locks up excel completely, I can't do anything except either wait for it to complete (an hour or so later) or kill the process :(
I'll post some code in a minute, however at the moment it's locked up!
Anyone have any ideas what might be causing this or how I could speed it up? I'm using Excel and Access 2000.
~Shiv
Wondering if you can help me at all, I have some VBA in Excel that is pulling a query from Access, however it is taking a long time to return despite that it doesn't take a terrible amount of time (<5m) to return if I run the query directly in Access. During this time Excel also chews the processor, taking between 70-100% of the cpu time.
I have tried the same query using an adodb.connection, adodb.command, and also adodb.command running a stored query passing in parameters. The same seems to happen to each!
During the time the query is running it locks up excel completely, I can't do anything except either wait for it to complete (an hour or so later) or kill the process :(
I'll post some code in a minute, however at the moment it's locked up!
Anyone have any ideas what might be causing this or how I could speed it up? I'm using Excel and Access 2000.
~Shiv