rst.MoveFirst CopyFromRecordset rst

samthomasny

New Member
Joined
Nov 19, 2011
Messages
9
I had a few Access files with vb scripts for running a bunch of queries using odbc to AS400 and then to the final summarized data I used to copy paste to pre-set Excel files. All of a sudden two days back it all stopped working. Access runs all the queries and get the final data I need, but it wasnt transferring those to the Excel file. The VB scripts came and stopped at this:

rst.MoveFirst

xlApp.Worksheets("InvDump").Range("B2").CopyFromRecordset rst

I baffled with this for a whole day. Then I checked the Windows Update and found there were a bunch of updates installed on 04/10/2014 for my 2010 64 bit Access. I uninstalled those updates and then tried my macros again. It worked like a charm. I am contemplating whether to turn off the auto-update.
 

Excel Facts

Format cells as currency
Select range and press Ctrl+Shift+4 to format cells as currency. (Shift 4 is the $ sign).

Forum statistics

Threads
1,216,030
Messages
6,128,408
Members
449,448
Latest member
Andrew Slatter

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top