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

Is there a shortcut key for strikethrough?
Ctrl+S is used for Save. Ctrl+5 is used for Strikethrough. Why Ctrl+5? When you use hashmarks to count |||| is 4, strike through to mean 5.

Forum statistics

Threads
1,223,730
Messages
6,174,169
Members
452,548
Latest member
Enice Anaelle

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