Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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). |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Sounds like this might be a limitation in Excel:
http://support.microsoft.com/kb/818808/en-us You may receive a "Run-time error 1004" error message when you programmatically set a large array string to a range in Excel 2003 -- Regards, Tom Ogilvy "Ken Valenti" wrote: 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). |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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? "Tom Ogilvy" wrote: Sounds like this might be a limitation in Excel: http://support.microsoft.com/kb/818808/en-us You may receive a "Run-time error 1004" error message when you programmatically set a large array string to a range in Excel 2003 -- Regards, Tom Ogilvy "Ken Valenti" wrote: 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). |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Started up a new post at the following link. This one wasn't getting any
responses. http://support.microsoft.com/newsgro...sloc=en-us&p=1 "Ken Valenti" wrote: 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). |
#5
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I posted what I think is an elegant solution to the 911 character limitation
in Excel. Perhaps it will work in Access as well. http://support.microsoft.com/newsgro...sloc=en-us&p=1 "Ken Valenti" wrote: 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). |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
CopyfromRecordset | Excel Programming | |||
CopyFromRecordset | Excel Programming | |||
copyfromrecordset fails after upgrade to XP and Excel 2003 | Excel Programming | |||
CopyFromRecordset does nothing | Excel Programming | |||
Copyfromrecordset Bug ? | Excel Programming |