DAO 3.0 CopyFromRecordset Method Not Compatible With XL97

Last reviewed: February 27, 1998
Article ID: Q157436
The information in this article applies to:
  • Microsoft Excel 97 for Windows

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

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.

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.

STATUS

This is by design of Microsoft Excel 97.


Additional query words: XL97 8.00
Keywords : kbcode kberrmsg kbprg xlvbainfo xldao xl97vbmigrate
Version : WINDOWS:97
Platform : WINDOWS


THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: February 27, 1998
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.