Ok, so basically I have an excel workbook as front end and an access database as back end. I also have a sheet with cells storing information like the table names and access field names.
Codes to get information from these cells into an array and building SQL statements for queries works fine.
5 SQL statements were built and therefore I made five loops to retrieve data from different tables of the database for each query.
For each loop I need to get specific field data from the temporary recordset into some specific named ranges in various cells (yes, I have no choice to just copy the whole **** thing and paste it all to a range using copyfromrecordset!),
So basically I have another loop inside for each query loop to copy the data from the temp recordset to each named range.
Problem is, SPEED! I found that it may be caused by the part where I need to copy data by data to each named range (there are around 100!), but another major part could be caused by the number of queries.
I am not sure if 5 queries could cause such performance issue or it is still about the named range problem. So what I would like to ask is that if I join all 5 queries together and make only 1 query to get all the data, will it speed up the process in getting the information from Access?
and for the named range problem, it seems there are no workaround for this as there are like 100 named range in various locations, so the only option I have is to make loop and assign data to each named range cell one by one...
any help would be welcomed...
Codes to get information from these cells into an array and building SQL statements for queries works fine.
5 SQL statements were built and therefore I made five loops to retrieve data from different tables of the database for each query.
For each loop I need to get specific field data from the temporary recordset into some specific named ranges in various cells (yes, I have no choice to just copy the whole **** thing and paste it all to a range using copyfromrecordset!),
So basically I have another loop inside for each query loop to copy the data from the temp recordset to each named range.
Problem is, SPEED! I found that it may be caused by the part where I need to copy data by data to each named range (there are around 100!), but another major part could be caused by the number of queries.
I am not sure if 5 queries could cause such performance issue or it is still about the named range problem. So what I would like to ask is that if I join all 5 queries together and make only 1 query to get all the data, will it speed up the process in getting the information from Access?
and for the named range problem, it seems there are no workaround for this as there are like 100 named range in various locations, so the only option I have is to make loop and assign data to each named range cell one by one...
any help would be welcomed...