Access数据库表单ActiveX控件错误 [英] Access Database Form ActiveX control error

查看:240
本文介绍了Access数据库表单ActiveX控件错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用带有日期选择器控件的表单。当打开表单并单击datepicker控件(MSCOMCT2.OCX)时,出现以下无用的错误:

I'm using a form that has date picker controls on it. When the form is opened and the datepicker control (MSCOMCT2.OCX) is clicked, I get the following unhelpful error:


表达式更改您输入为偶数属性设置
时,会产生以下错误:在您的表单或报表之一上加载ActiveX
控件时出错。

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.

我可以忽略此消息,但随后会抱怨

I can dismiss this message, but then get the same thing complaining about


MouseMove

MouseMove

我没有在vba中指定这些事件,所以我在

I haven't specified these events in the vba, so I'm at a loss for what could be causing this.

当我在带有Access 2007 PC的winXP或带有Access 2003 PC的winXP上运行该问题时,不会发生此问题,但确实发生在其他所有使用Access 2003的WinXP。注册MSCOMCT2.OCX无效。

The problem Does not happen when I run it on my winXP w/ Access 2007 PC or my winXP w/ Access 2003 PC, but does happen on all other tested winXP w/ Access 2003's. Registering MSCOMCT2.OCX has no effect.

是什么原因引起的,我该如何纠正?

What could be causing this and how can I correct it?

推荐答案

我的印象是经验最丰富的Access开发人员尽可能避免使用ActiveX控件。对于日期选择器,您绝对不需要ActiveX。

My impression is most experienced Access developers avoid ActiveX controls whenever possible. For a date picker, you definitely don't need ActiveX.

请参见Allen Browne的弹出式日历 。我已经在Access 2003和2007中成功使用了他的表格( Access 2000及更高版本的版本)。

See Popup Calendar by Allen Browne. I've used his form (the version for "Access 2000 and later") successfully with both Access 2003 and 2007.

如果您不喜欢这种形式,请访问他在该页面底部提供的其他方法链接。

If that one is not to your liking, visit the links he provided (at the bottom of that page) for other approaches.

这篇关于Access数据库表单ActiveX控件错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆