与OLE服务器或ActiveX控件进行通信 [英] Communicating with the OLE Server or ActiveX Control

查看:100
本文介绍了与OLE服务器或ActiveX控件进行通信的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

MS Access 2010,Win 7的常规格式
我没有故意放置任何ActiveX或OLE东西.甚至不确定它们是什么.但是无论如何,每当我在特定形式的代码中放置一些内容时,它都会显示
作为事件属性设置输入的表达式XXXXX产生以下错误:MyDB与OLE服务器通信时发生了问题或Active X控件

嗯?无论我在表单的代码中添加了什么,都会发生这种情况.我只有一个空的Form_Current()仍然可以解决这个问题.有很多格式可以使用,但我不想将其废弃.如果我将代码窗口完全留空(仅Option Compare Database),则不会出错.但是然后我的表格就没用了.

Huh? No matter what I put in the form's code, this happens. I had an empty Form_Current() ONLY which still tripped this. There's a lot of formatting and work into the form, I'd rather not scrap it.. If I leave the code window completely empty (only Option Compare Database), it does not trip the error; however then my form is useless.

我已经看到有关这是语言问题的信息,但是我的其他形式(运行相同的代码技术和大多数相同的代码)也可以,并且它是带有英语PC的英语Access.想法?

I've seen things about this being a language issue, but my other forms (running the same code techniques and most of the same code) are fine and it's an english Access with an english language PC. Ideas?

代码设置错误:

Private Sub Form_Current()
End Sub

严重.

推荐答案

检查是否缺少引用.进行备份,反编译,压缩和压缩修复,并且如果无法解决问题,请将所有内容复制到新的数据库( http://www. granite.ab.ca/access/corruptmdbs.htm ),您可能不得不跳过复制问题表格.有时值得创建一个新表单,从旧表单中选择所有控件,然后粘贴到新表单中.

Check for missing references. Make a back-up, decompile, compact & repair and if that does not work, copy everything to a new db ( http://www.granite.ab.ca/access/corruptmdbs.htm ) You may have to skip copying the problem form. Sometimes it is worth creating a new form, selecting all the controls from the old form and pasting into the new form.

这篇关于与OLE服务器或ActiveX控件进行通信的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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