独立事件程序 [英] Detached Event Procedures

查看:91
本文介绍了独立事件程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用Access 2003,并且每隔一段时间就会出现一个持续存在的问题

会丢失一个事件程序

表单或控件。该过程仍在代码模块中,但

表单或控件的属性表未显示[Event Procedure]。我手动把它放回去,然后一切都很好。


有谁知道导致这种现象的原因,或者至少,如何

告诉他们是否有任何这些分离的事件程序?由于[事件程序]因为[事件程序]而导致您没有进行过程运行,因为这是非常不可靠的。属性表中缺少。是否有一个

方法来判断数据库中是否有这些?


谢谢!


Neil

I am using Access 2003, and have an ongoing problem of every once in a while
losing an event procedure
for a form or control. The procedure''s still in the code module, but the
form or control''s property sheet does not show "[Event Procedure]". I have
to manually put it back, and then everything''s fine.

Does anyone know what causes this phenomenon, or, at the very least, how to
tell if there are any of these "detached" event procedures? It''s extremely
disconcerting to not have a procedure run that you assume is in place simply
because "[Event Procedure]" is missing from the property sheet. Is there a
way to tell if there are any of these in the db?

Thanks!

Neil

推荐答案

Neil写道:
Neil wrote:

我正在使用Access 2003,并且有一个在失去活动程序的情况下,每一次在

a的持续问题

表格或控件。该程序仍在代码模块中,但

表格或控件的属性表未显示[事件

程序]。我必须手动把它放回去,然后一切都好了。
罚款。

有谁知道导致这种现象的原因,或者至少,

如何判断是否存在任何分离的事件程序?

如果没有一个程序运行你会非常不安,因为[事件程序]只是因为b $ b假设到位了。

缺少属性表。有没有办法告诉数据库中是否有这些



谢谢!


Neil
I am using Access 2003, and have an ongoing problem of every once in
a while losing an event procedure
for a form or control. The procedure''s still in the code module, but
the form or control''s property sheet does not show "[Event
Procedure]". I have to manually put it back, and then everything''s
fine.
Does anyone know what causes this phenomenon, or, at the very least,
how to tell if there are any of these "detached" event procedures?
It''s extremely disconcerting to not have a procedure run that you
assume is in place simply because "[Event Procedure]" is missing from
the property sheet. Is there a way to tell if there are any of these
in the db?
Thanks!

Neil



如果重命名控件或剪切并粘贴控件,则会丢失该设置。我没有遇到任何导致它的事情。


-

Rick Brandt,Microsoft Access MVP

电子邮件(视情况而定)给...

在Hunter dot的RBrandt com

If you rename the control or cut and paste the control you lose that setting. I
have never encountered anything else that caused it.

--
Rick Brandt, Microsoft Access MVP
Email (as appropriate) to...
RBrandt at Hunter dot com


Rick'给你的当" ;.有关如何解决问题的方法,请查看2004年3月的访问答案中的
。 Pinnacle出版物中的专栏智能

访问。您可以在
http下载免费下载专栏(和样本数据库) ://www.accessmvp.com/DJSteele/SmartAccess.html

-

Doug Steele,Microsoft Access MVP
http://I.Am/DougSteele

(不是私人的)电子邮件,请)

Neil < no **** @ nospam.netwrote in message

news:u2 ************** @ newssvr22.news.prodigy.net ..
Rick''s given you the "when". For how to correct the problem, take a look at
my March, 2004 "Access Answers" column in Pinnacle Publication''s "Smart
Access". You can download the column (and sample database) for free at
http://www.accessmvp.com/DJSteele/SmartAccess.html

--
Doug Steele, Microsoft Access MVP
http://I.Am/DougSteele
(no private e-mails, please)
"Neil" <no****@nospam.netwrote in message
news:u2**************@newssvr22.news.prodigy.net.. .

>我正在使用Access 2003,并且在丢失事件过程时每次都有一个持续存在的问题

表格或控件。该过程仍在代码模块中,但

表单或控件的属性表未显示[Event Procedure]。我手动把它放回去,然后一切都很好。


有谁知道导致这种现象的原因,或者至少,如何



告诉他们是否有任何这些分离的事件程序?如果你没有假设已经到位的程序运行,那就太麻烦了。

只是

因为[事件程序] "属性表中缺少。是否有一个

方法来判断数据库中是否有这些?


谢谢!


Neil

>I am using Access 2003, and have an ongoing problem of every once in a
while losing an event procedure
for a form or control. The procedure''s still in the code module, but the
form or control''s property sheet does not show "[Event Procedure]". I have
to manually put it back, and then everything''s fine.

Does anyone know what causes this phenomenon, or, at the very least, how
to
tell if there are any of these "detached" event procedures? It''s extremely
disconcerting to not have a procedure run that you assume is in place
simply
because "[Event Procedure]" is missing from the property sheet. Is there a
way to tell if there are any of these in the db?

Thanks!

Neil



在开放的活动中,


如下:


Me.OnTimer =" [Event Procedure]"


如果打开时没有松开它,这是可能的[事件

程序]。如果你想检查一下,那么你必须编写一个代码,然后把它放在你的数据库启动时检查,看看是否所有想要的

表格都有 [事件程序]在公开活动中。

4月15日晚上10点10分,Douglas J. Steele

< NOSPAM_djsteele@NOSPAM_canada.comwrote:
in the on open event,

put something like:

Me.OnTimer = "[Event Procedure]"

this is possible if the on open does not loose it''s "[Event
Procedure]". if you want to check that, then you must write a code and
put it in the startup of your database to check and see if all desired
forms have the "[Event Procedure]" in their on open event.
On Apr 15, 10:09 pm, "Douglas J. Steele"
<NOSPAM_djsteele@NOSPAM_canada.comwrote:

Rick'给你when。有关如何解决问题的方法,请查看2004年3月的访问答案中的
。 Pinnacle出版物中的专栏智能

访问。您可以免费下载专栏(和示例数据库)http://www.accessmvp.com/DJSteele/SmartAccess.html


-

Doug Steele,Microsoft Access MVPhttp://I.Am/DougSteele

(请不要发私人电子邮件)


Neil < nos ... @ nospam.netwrote in message


news:u2 ************** @ newssvr22.news.prodigy.net。 。
Rick''s given you the "when". For how to correct the problem, take a look at
my March, 2004 "Access Answers" column in Pinnacle Publication''s "Smart
Access". You can download the column (and sample database) for free athttp://www.accessmvp.com/DJSteele/SmartAccess.html

--
Doug Steele, Microsoft Access MVPhttp://I.Am/DougSteele
(no private e-mails, please)

"Neil" <nos...@nospam.netwrote in message

news:u2**************@newssvr22.news.prodigy.net.. .

我正在使用Access 2003,并且在丢失事件过程时每隔一次就会出现一个问题 >
表格或控件。该过程仍在代码模块中,但

表单或控件的属性表未显示[Event Procedure]。我有

手动把它放回去,然后一切都很好。
I am using Access 2003, and have an ongoing problem of every once in a
while losing an event procedure
for a form or control. The procedure''s still in the code module, but the
form or control''s property sheet does not show "[Event Procedure]". I have
to manually put it back, and then everything''s fine.


有没有人知道是什么原因导致这种现象,或者至少是怎么回事



告诉他们是否有任何分离的事件程序?如果你没有假设已经到位的程序运行,那就太麻烦了。

只是

因为[事件程序] "属性表中缺少。是否有一个

方法来判断数据库中是否有这些?
Does anyone know what causes this phenomenon, or, at the very least, how
to
tell if there are any of these "detached" event procedures? It''s extremely
disconcerting to not have a procedure run that you assume is in place
simply
because "[Event Procedure]" is missing from the property sheet. Is there a
way to tell if there are any of these in the db?


谢谢!
Thanks!


Neil
Neil



这篇关于独立事件程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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