Help and Support

XL97: DAO 3.0 CopyFromRecordset Method Not Compatible with Excel 97

Article ID:157436
Last Review:October 10, 2006
Revision:1.2
This article was previously published under Q157436
For a Microsoft Office XP version of this article, see 291301 (http://support.microsoft.com/kb/291301/EN-US/).
For a Microsoft Excel 2000 version of this article, see 213577 (http://support.microsoft.com/kb/213577/EN-US/).

SYMPTOMS

When you use Microsoft Data Access Objects version 3.0 (DAO 3.0) with Microsoft Excel 97, you may receive the following error message:
Run-time error '430':
Class doesn't support Automation

Back to the top

CAUSE

You will receive the error message given above if both of the following are true:

You are referencing the DAO 3.0 object library.

-and-
You are using the CopyFromRecordset method in your macro.
This behavior is by design of Microsoft Excel.

Back to the top

RESOLUTION

Change your project in Microsoft Excel 97 so that it references DAO 3.5 instead of DAO 3.0:

1.In the Visual Basic Editor, click References on the Tools menu.
2.Clear the "Microsoft DAO 3.0 Object Library" check box.
3.Select the "Microsoft DAO 3.5 Object Library" check box and click OK.

Back to the top


APPLIES TO
Microsoft Excel 97 Standard Edition

Back to the top

Keywords: 
kbbug kbdtacode kberrmsg kbpending kbprogramming KB157436

Back to the top

Article Translations

 

Related Support Centers

Other Support Options

  • Need More Help?
    Contact a Support professional by Email, Online or Phone.
  • Customer Service
    For non-technical assistance with product purchases, subscriptions, online services, events, training courses, corporate sales, piracy issues, and more.
  • Newsgroups
    Pose a question to other users. Discussion groups and Forums about specific Microsoft products, technologies, and services.