Hi all,
Please can anyone tell me the fastest and most efficient way to dump the entire contents of a recordset (in this case anything from 700 to 60000 rows) into a specified worksheet?
The way i am doing it thus far is:
1. query the db to obtain records
2. loop through each field of each row in the recordset and place the value in the correspnding worksheet cell.
3. re-query for the next set of data
2. loop through as before and place the data onto the next sheet etc.
The problem i am having is that the first recordset loops through nice and fast while inserting the data, however subsequent recordsets loop through painfully slow (like one record per second!) Does anyone know why this is? between each query i disconnect the database and close the recordset.
Thanks
Please can anyone tell me the fastest and most efficient way to dump the entire contents of a recordset (in this case anything from 700 to 60000 rows) into a specified worksheet?
The way i am doing it thus far is:
1. query the db to obtain records
2. loop through each field of each row in the recordset and place the value in the correspnding worksheet cell.
3. re-query for the next set of data
2. loop through as before and place the data onto the next sheet etc.
The problem i am having is that the first recordset loops through nice and fast while inserting the data, however subsequent recordsets loop through painfully slow (like one record per second!) Does anyone know why this is? between each query i disconnect the database and close the recordset.
Thanks