我使用的表单上有日期选择器控件。当打开表单并单击日期选择器控件 (MSCOMCT2.OCX) 时,我收到以下无用的错误:
The expression Change you entered as the even property setting produced the following error: There was an error loading an ActiveX control on one of your forms or reports.
*The expression may not result in the name of a macro, the name of a user-defined function, or [Event Procedure.]
*There may have been an error evaluating the function, event, or macro.
我可以忽略此消息,但随后会收到同样的提示
MouseMove
我没有在 vba 中指定这些事件,所以我不知道是什么原因导致的。
当我在带有 Access 2007 PC 的 winXP 或带有 Access 2003 PC 的 winXP 上运行该问题时,不会发生此问题,但在所有其他经过测试的带有 Access 2003 的 winXP 上却会出现此问题。注册 MSCOMCT2.OCX 无效。
什么可能导致此问题以及如何纠正它?
最佳答案
我的印象是,大多数有经验的 Access 开发人员都会尽可能避免使用 ActiveX 控件。对于日期选择器,您绝对不需要 ActiveX。
参见Popup Calendar艾伦·布朗着。我已经在 Access 2003 和 2007 中成功使用了他的表单(“Access 2000 及更高版本”的版本)。
如果您不喜欢这种方法,请 Access 他提供的链接(位于该页面底部)以获取其他方法。
关于ms-access - Access 数据库表单 ActiveX 控件错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/6682322/