CPGDeveloper
Board Regular
- Joined
- Oct 8, 2008
- Messages
- 190
Hello~
I am working on an application (MS Access Front End/Azure SQL Back End). I have a reporting tool that runs 10+ Reports at once, looping through each one, and exporting it to Excel. It generally works fine, however occasionally it gets stuck on the following line:
osheet.Range("A2").CopyFromRecordset rs
With the error I mention in the title. And a description of Method 'Copy From Recordset' failed.
However, simply resume after this error pops up takes care of it. And this error pops up intermittently -- sometimes it will go through the entire cycle without erroring out, and sometimes it will happen 2-3 times.
Is there a simple way to simply bypass this? I try to capture this in an error handler, but strangely, when the code stops and the error pops up -- typing ?Err.number in the immediate window produces nothing.
Anyway -- any ideas would be greatly appreciated.
Thanks.
I am working on an application (MS Access Front End/Azure SQL Back End). I have a reporting tool that runs 10+ Reports at once, looping through each one, and exporting it to Excel. It generally works fine, however occasionally it gets stuck on the following line:
osheet.Range("A2").CopyFromRecordset rs
With the error I mention in the title. And a description of Method 'Copy From Recordset' failed.
However, simply resume after this error pops up takes care of it. And this error pops up intermittently -- sometimes it will go through the entire cycle without erroring out, and sometimes it will happen 2-3 times.
Is there a simple way to simply bypass this? I try to capture this in an error handler, but strangely, when the code stops and the error pops up -- typing ?Err.number in the immediate window produces nothing.
Anyway -- any ideas would be greatly appreciated.
Thanks.