Run-time error ' 430 ': The class does not support Automation or does not support the desired interface. New ADODB. Connection problems

Source: Internet
Author: User

Run-time error ' 430 ': The class does not support Automation or does not support the desired interface.

Problem:

Debugging found that there was an error running to the following statement:
Set myconn = New ADODB. Connection run to here is a hint of this error


This myconn is stated in GM:
Dim myconn as ADODB. Connection

You are quoting the 2.8 version of the test.

Location: C:\Program Files \common Files\sysem\ado\msado15.dll (problem solved with 2.8)

===

Nstalling ADO also copies the following type libraries of earlier versions:

msado27.tlb, ADO 2.7 Type Library

msado26.tlb, ADO 2.6 Type Library

msado25.tlb, ADO 2.5 Type Library

msado21.tlb, ADO 2.1 Type Library

msado20.tlb, ADO 2.0 Type Library

= =

Under 64-bit Windows:
64-bit EXE and DLL in directory C:\Windows\System32 directory;
32-bit EXE and DLL in directory C:\WINDOWS\SYSWOW64 directory;
So pay attention to:
Registering a 32-bit OCX or DLL under the Win64 bit system requires that the 32-bit OCX or DLL be copied to the C:\windows\syswow64\ directory.
and register to use C:\windows\syswow64\regsvr32 Xxxxxxx.ocx or DLL
Set up a 32-bit DSN to use C:\windows\syswow64\odbcad32.exe
Set 32-bit alias to use C:\windows\syswow64\cliconfg.exe

Run-time error ' 430 ': The class does not support Automation or does not support the desired interface. New ADODB. Connection problems

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.