开发者

MSAccess Error: Class does not support Automation or does not support expected interface

开发者 https://www.devze.com 2023-04-13 07:34 出处:网络
The issue is that it\'s looking for the OLE Automation reference in C:\\Windows\\SysWOW64\\stdole2.tlb

The issue is that it's looking for the OLE Automation reference in C:\Windows\SysWOW64\stdole2.tlb

Which is fine for 64bit users but not for 32bit. How would I fix this?

How do I find out if the reference is used anywhere? I'm afraid of simply removing the reference then finding out it's being used somewhere.

Update: Below is where the error is triggered:

开发者_如何学Go  Error -->  Set Cnxn = New ADODB.Connection
         With Cnxn
           .Provider = "MSDataShape"
           .Properties("Data Provider").Value = "SQLOLEDB"
           .Properties("Data Source").Value = dbserver
           .Properties("User ID").Value = username
           .Properties("Password").Value = password
           .Properties("Initial Catalog").Value = dbname
           .CommandTimeout = 120
           .ConnectionTimeout = 120
           .Open
        End With


All references are pointing to C:\Windows\SysWOW64 and therefore causing the errors on 32 bit machines.

I opened the Access app on a 32bit machine and re-added the all the references that were previously pointing to the SysWOW64 folder.

Thanks!


shld check the service pack of windows 7. SP1 gives an error. should compile in a later or previous service pack.

0

精彩评论

暂无评论...
验证码 换一张
取 消