G
Guest
I need to modify data in a table, but I would like to create a backup of this
table everytime before I do so. Right now I am opening the table in an ADODB
recordset, opening and Excel workbook and then looping through each record
and populating the Excel worksheet. The table has about 2000 records in it,
and the process of pupulating the Excel worksheet is painfully slow as it
loops through me while statement.
If I were to do this manually, I open the table in Access, select all of the
records and copy them, then I switch to Excel and paste them into my
worksheet. I can complete this process in about 5 seconds, and that includes
the time it takes me to move my mouse!
I'm wondering if there is any way of mimicking this action with VBA.
Any help would be great.
Thanks!
Graham
table everytime before I do so. Right now I am opening the table in an ADODB
recordset, opening and Excel workbook and then looping through each record
and populating the Excel worksheet. The table has about 2000 records in it,
and the process of pupulating the Excel worksheet is painfully slow as it
loops through me while statement.
If I were to do this manually, I open the table in Access, select all of the
records and copy them, then I switch to Excel and paste them into my
worksheet. I can complete this process in about 5 seconds, and that includes
the time it takes me to move my mouse!
I'm wondering if there is any way of mimicking this action with VBA.
Any help would be great.
Thanks!
Graham