问题描述
使用TreeView(MSComctlLib.TreeCtrl.2)访问Access 2010-应用程序会按预期显示并填充,但是在Windows安全修补程序不会将事件触发回VBA之后突然出现.
Access 2010-application using TreeView (MSComctlLib.TreeCtrl.2) shows and populates as expected but suddenly after windows security patches doesn't fire events back to VBA.
尝试在/syswow64中回滚MSCOMCTL.OCX,但是没有运气.
Tried with rolling back MSCOMCTL.OCX in /syswow64, but no luck.
请ping任何类似的行为或提示以解决此问题.
Please ping any similar behaviour or hints for fixing the issue.
致谢
推荐答案
问题似乎是在安全更新后,mscomctl.ocx的注册表项被破坏了.可以在此 KB文章中找到一种解决方案.建议以管理员身份运行此批处理文件:
The problem appears to be that the registry entries for mscomctl.ocx are broken after the security update. One solution can be found in this KB article. It suggests to run this batch file as administrator:
reg delete hkcr\typelib\{831FDD16-0C5C-11D2-A9FC-0000F8754DA1}\2.0 /f
if exist %systemroot%\SysWOW64\cscript.exe goto 64
%systemroot%\system32\regsvr32 /u mscomctl.ocx
%systemroot%\system32\regsvr32 mscomctl.ocx
exit
:64
%systemroot%\sysWOW64\regsvr32 /u mscomctl.ocx
%systemroot%\sysWOW64\regsvr32 mscomctl.ocx
exit
我已经证实这可以在我们的环境中正常工作.
I've verified that this works in our environment.
这篇关于赢得秒更新后,MS-access不会捕获树视图事件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!