MS-access doesn't catch treeview events after win sec-update

与世无争的帅哥 提交于 2019-12-01 20:54:16

问题


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.

Tried with rolling back MSCOMCTL.OCX in /syswow64, but no luck.

Please ping any similar behaviour or hints for fixing the issue.

regards,


回答1:


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.




回答2:


I opened an Access file developed on 32-bit Access 2013 running on Windows 7 32-bit, and had experienced this problem when opening it on 64-bit Access 2013 running on Windows 8 64-bit.

My solution:

Delete the control and add it back again, using the design view on your Access form.

Because the treeview's properties are mostly set programmatically, there should be little to do aside from repositioning it and renaming it.



来源:https://stackoverflow.com/questions/11984274/ms-access-doesnt-catch-treeview-events-after-win-sec-update

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!