CopyFromRecordset Automation Error

AlphonseG 201 Reputation points
2025-01-20T15:49:08.4033333+00:00

ExcelSheetPopulate.txtI had been running Office 2016 MSO (16.0.12624.20278) 32-bit for several years.

I've been using the attached code in MS Access for the past 5 years without any issue.

Suddenly, getting Error 430, 'Class does not support Automation or does not support expected interface', on line 470 CopyFromRecordset.

It runs fine on other machines using various versions of Office. I have been unable to resolve the error on my dev machine.

Repaired Office, both offline and online repairs.

Uninstalled (via the uninstall troubleshooter) and reinstalled to various versions, including the very latest.

Currently running 2019 MSO (Version 2208 Build 16.0.15601.20526) 32-bit.

Unregistered/re-registered both dao360.dll and msado15.dll.

Also ran DISM and sfc.

There are no missing references.

How can I resolve this error?

Office Development
Office Development
Office: A suite of Microsoft productivity software that supports common business tasks, including word processing, email, presentations, and data management and analysis.Development: The process of researching, productizing, and refining new or existing technologies.
4,202 questions
Access Development
Access Development
Access: A family of Microsoft relational database management systems designed for ease of use.Development: The process of researching, productizing, and refining new or existing technologies.
897 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Gustav 717 Reputation points MVP
    2025-01-20T17:57:54.15+00:00

    @Viorel It's the other way around; DAO has been the default, preferred, recommended, and most widely used engine since at least version 2007(!) where ACE were introduced.

    1 person found this answer helpful.
    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.