CopyFromRecordset method causing error

colofnature

New member
Local time
Today, 02:26
Joined
Sep 19, 2006
Messages
4
Hi

Trying to dump a table into Excel using CopyFromRecordset, but it's only copying the first dozen rows, then breaking halfway through the next with the error message "Run-time error '-2147467259 (80004005)' Method 'CopyFromRecordset' of object 'Range' failed", which doesn't really tell me much. I could loop through the recordset to output each field individually but I'd rather know why it's not working. Any ideas? :confused:

Cheers
Col
 
Just a thought, but could it be erroring out because it is trying to copy nulls?
 

Users who are viewing this thread

Back
Top Bottom