Access 2000 VBA code not working Access 2002 
Author Message
 Access 2000 VBA code not working Access 2002

This line of code fails in the attached document:- "
xlsheet.Range("a2").CopyFromRecordset dsource1 "

This is the message generated:- " Class does not
support automation or does not support excepted interface "

Thanks.

Aspiring Developer

  Entire Procedure.txt
3K Download


Mon, 11 Jul 2005 04:00:13 GMT  
 Access 2000 VBA code not working Access 2002
The line of code that gave the error is Excel VBA, not Access.

Suggest you check Excel VBA Help on "CopyFromRecordset" and see if any
restriction on using it with automation.  Also, test similar code (modified
to run in Excel by itself) in your Excel version.

--
HTH
Van T. Dinh
MVP (Access)


Quote:
> This line of code fails in the attached document:- "
> xlsheet.Range("a2").CopyFromRecordset dsource1 "

> This is the message generated:- " Class does not
> support automation or does not support excepted interface "

> Thanks.

> Aspiring Developer



Tue, 12 Jul 2005 10:00:27 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. Code from Access 2.0 not working in Access 2000

2. Access 97 upgrade to Access 2000 or Access 2002

3. Application written for Access 2000 with DAO won't run in Access 2002

4. ACCESS 2000 TO ACCESS 2002

5. Att: MS Rita Nikas per your request: Access 2000/2002 Error Accessing File

6. Access 2000 vs. Access 2002 (XP)

7. DLL usage - works in Access 97 but not in Access 2000

8. Access 97 VBA modifications not visible in Access 2000

9. Does Word VBA 2002 developed code run on Word 2000

10. Converting to Access 2002 Code doesn't work

11. SQL string not works in VB and works in Access 2000

12. Access 2000 VBA Handbook vis a vis Access 97 VBA Handbook

 

 
Powered by phpBB® Forum Software