CopyFromRecordset fails if string > 911?

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

When using the CopyFromRecordset method, it fails if the lenghth of text
exceeds 9XX.

Using ADO to connect to an Access 2003 database. Fields are defined as
"memo" in Access (unlimitted length).
 
I also ran into the 911 character limitation mentioned in KB 818808 too.
There has to be a workaround, however, since using Tools > Import External
Data or Microsoft Query does not produce the same error using the same data.

I attempted to use the copy recordset to array, then transpose and copy
array to worksheet method mentioned in KB 246335, but I got the same error.
That makes sense since, as KB 818808 states, the error is produced by
"programmatically set[ting] a large array string to a range in Excel 2003."

So, the question remains, how does Tools > Import External Data do it and
not get the error?
 
Back
Top