简体   繁体   English

MSACCESS.EXE中的错误R6034,然后出现运行时错误'-2147023782(8007045a)'

[英]Error R6034 in MSACCESS.EXE followed by Run-time error '-2147023782 (8007045a)'

I have these error messages when I start MS-Access application (has VBA code). 启动MS-Access应用程序(具有VBA代码)时出现这些错误消息。

When I click OK in the first error message and debug in the second, the debugger opens up and points to the line that says: " Set oServer = New SQLDMO.SQLServer " 当我在第一条错误消息中单击“确定”并在第二条错误消息中进行调试时,调试器将打开并指向显示以下行:“ Set oServer = New SQLDMO.SQLServer

I realise that it's a problem with SQL-DMO, but can't seem to register the DLL. 我意识到这是SQL-DMO的问题,但似乎无法注册DLL。

My environment: Win7 Pro 64-bit , Office 2010 64-bit , MS SQL Server 2008 R2 SP2 64-bit . 我的环境: Win7 Pro 64-bitOffice 2010 64-bitMS SQL Server 2008 R2 SP2 64-bit

I downloaded the backwards compatibility package from Microsoft, ran the MSI , and nothing. 我从Microsoft下载了向后兼容软件包 ,运行了MSI ,什么也没有。 Tried to manually install, and get error messages: 尝试手动安装并获取错误消息:

  1. R6034 for C:\\Windows\\System32\\regsvr32.exe and when I click Ok --> The module " SQLDMO.DLL " failed to load. C:\\Windows\\System32\\regsvr32.exe R6034 ,单击确定->模块“ SQLDMO.DLL ”无法加载。 Make sure the binary is stored at the specified path or debug it ... blah blah Make sure the binary is stored at the specified path or debug it ...等等
  2. When I try to register it from C:\\Windows\\SysWOW64 , I get " The module "SQLDMO.DLL" may not (be) compatible with the version of Windows that you're running. Check if the module is compatible with.... 当我尝试从C:\\Windows\\SysWOW64注册它时,我得到“ The module "SQLDMO.DLL" may not (be) compatible with the version of Windows that you're running. Check if the module is compatible with....

I've checked the version of SQLDMO.DLL and it is definitely 64-bit. 我检查了SQLDMO.DLL的版本,它肯定是64位的。 I have located all the other DLLs that SQL-DMO needs and stored them in SysWOW64 and System32 . 我找到了SQL-DMO需要的所有其他DLL,并将它们存储在SysWOW64System32

I have run Office repair , Windows Update , SQL Server repair (the log file indicates pass for everything for Client Tools Backwards Compatibility). 我已经运行了Office repairWindows UpdateSQL Server repair (日志文件表明客户端工具向后兼容的所有内容都通过了)。

Any help is much appreciated. 任何帮助深表感谢。 Thanks, Miki. 谢谢三木

Not sure how I've managed to, but have (somehow) managed to register the 64-bit SQLDMO.DLL (before it didn't really register it) and then in my VBA code--> Tools --> References... I tried to load the SQLDMO.DLL from the 64-bit folder. 不知道如何管理,但是(以某种方式)设法注册了64位SQLDMO.DLL(在没有真正注册之前),然后在我的VBA代码中->工具->引用。我试图从64位文件夹中加载SQLDMO.DLL。 At first, it didn't work, and then I placed a copy of the DLL in SysWOW64 (which is a 32-bit folder) and registered it from there (once it was registered, apparently, the system doesn't need it there anymore - I removed it, and it still works). 首先,它没有用,然后我将DLL的副本放在SysWOW64(这是一个32位文件夹)中,然后从那里注册(一旦注册,显然,系统不需要它了)了-我将其删除,并且仍然可以正常运行)。 I then tried to figure how come it works. 然后,我试图弄清楚它是如何工作的。 I checked in the Reference Table in the VBA Code, and the Microsoft SQLDMO Object Library is still pointing to C:\\Program Files (x86)\\Microsoft SQL Server\\80\\Tools\\Binn, but when I removed SQLDMO.DLL from there it still worked... I then looked in C:\\Program Files\\Microsoft SQL Server\\80\\Tools\\Binn and removed SQLDMO.DLL from there and then it stopped working! 我在VBA代码中的“引用表”中签入,并且Microsoft SQLDMO对象库仍然指向C:\\ Program Files(x86)\\ Microsoft SQL Server \\ 80 \\ Tools \\ Binn,但是当我从那里删除SQLDMO.DLL时仍然有效...然后,我查看了C:\\ Program Files \\ Microsoft SQL Server \\ 80 \\ Tools \\ Binn并从那里删除了SQLDMO.DLL,然后它停止了工作! I have no idea what happened, or why the reference table is saying it's pointing to one folder but actually pointing to a different one, or how after the same tries before, only now it works. 我不知道发生了什么,或者为什么参考表说它指向一个文件夹,但实际上指向另一个文件夹,或者经过相同的尝试之后才知道,现在才知道。 I'd like to be able to replicate this (in case I need to go through this process again), so any ideas/suggestions would be greatly appreciated. 我希望能够复制此代码(以防我需要再次执行此过程),因此任何想法/建议都将不胜感激。 Thanks, Miki. 谢谢三木

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM