Hi folks,
I have written a VBA procedure (in Excel VBA) to open an access database using the DAO opendatabase method, and then loop through a list of SQL queries, using .copyfromrecordset to copy the query results onto separate tabs in the Excel workbook.
This works great on my pc, and, to run through the list of around 30 queries and copy them all over takes around 30 seconds.
However, when I get the users to run it, it takes a lot longer. It can be anything from 2 or 3 minutes to 10 or more minutes to do exactly the same bit of code.
They've all had new pcs recently and the pc specs are in fact better than my laptop. In all cases the Excel sheet and database sit on the C: drive, so it's not network issue. We are all using Windows 7 and Office 2013 with 4GB of RAM.
We run these jobs every day - it's the bread and butter of the company, so if I could save a few minutes for each one then it will make a massive difference.
Does anyone have any suggestions as to what might be causing this ?
Thanks very much
Pete.
I have written a VBA procedure (in Excel VBA) to open an access database using the DAO opendatabase method, and then loop through a list of SQL queries, using .copyfromrecordset to copy the query results onto separate tabs in the Excel workbook.
This works great on my pc, and, to run through the list of around 30 queries and copy them all over takes around 30 seconds.
However, when I get the users to run it, it takes a lot longer. It can be anything from 2 or 3 minutes to 10 or more minutes to do exactly the same bit of code.
They've all had new pcs recently and the pc specs are in fact better than my laptop. In all cases the Excel sheet and database sit on the C: drive, so it's not network issue. We are all using Windows 7 and Office 2013 with 4GB of RAM.
We run these jobs every day - it's the bread and butter of the company, so if I could save a few minutes for each one then it will make a massive difference.
Does anyone have any suggestions as to what might be causing this ?
Thanks very much
Pete.