Link to home
Start Free TrialLog in
Avatar of farnsworth
farnsworth

asked on

Access 2000/Excel 2000 CopyFromRecordset Error

My end goal is to transfer the data from a subform in Access 2000 to Excel 2000 via the CopyFromRecordset method. I am currently populating a DAO recordset from the subform's recordsetclone method. I then open a new Excel document through code and use the copyfromrecordset method to move the data. Most of the time it works fine on all user's machines, but when one field in the subform gets too large, some machines kick out an error of "Method CopyFromRecordset of object Range Failed". The current record that is causing the problem (on my machine) is a memo field and has a length of 1187 chracters. When I run it on another developers machine, goes through fine. Any ideas on the problem?
Avatar of Data-Man
Data-Man
Flag of United States of America image

are both machines using the same version (SP) of DAO?

I think the current SP is number 8 for DAO.

http://support.microsoft.com/default.aspx?scid=kb;EN-US;829558

Mike
Avatar of farnsworth
farnsworth

ASKER

We are both using version 3.6 and have the same SP installed.
ASKER CERTIFIED SOLUTION
Avatar of Data-Man
Data-Man
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Right on, that worked! He (the other user) was running SR-1a. I upgraded to that and it works fine. Thanks!
:-)   Mike