生成记录号后立即发生的事件是什么? [英] What is the event that occurs right after a record number is generated?

查看:72
本文介绍了生成记录号后立即发生的事件是什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正试图在用户将第一个字符输入记录中的任何字段后触发一些代码。我似乎无法确定适当的事件。我很难理解更新与更新之间的区别。和一个实际的帖子到桌子。这就是我认为我知道的,不知道:


用户在记录中的任何字段中键入第一个字符...


BeforeInsert:在自动编号字段创建数字之前发生。

< unknown event>:在自动编号字段创建数字后立即发生。


用户离开记录:

BeforeUpdate:在记录更新到表之前发生。

AfterUpdate:在记录更新到表之后发生。


AfterInsert:在将记录插入表格后发生。 (这与AfterUpdate有什么不同?)


如果你能帮我识别<未知事件>,我会很感激。

谢谢,

Adam

I''m trying to trigger some code to fire right after a user enters their first character into any field in the record. I can''t seem to identify the proper event. I''m having a little difficulty understanding the difference between an "Update" and an actual post to the table. Here''s what I think I know, and don''t know:

User types first character into any field in record...

BeforeInsert: Occurs before the autonumber field creates a number.
<unknown event>: Occurs immediately after the autonumber field creates a number.

User leaves the record:
BeforeUpdate: Occurs just before the record is updated to the table.
AfterUpdate: Occurs just after the record is updated to the table.

AfterInsert: Occurs after record is inserted into table. (How is this different from AfterUpdate?)

If you can help me identify the <unknown event>, I''d appreciate it.
Thanks,
Adam

推荐答案

表格的OnDirty事件应该有效。
The OnDirty Event for the form should work.


Adam,can你解释为什么你在寻找这个活动?据我所知,没有一个事件与自动编号生成有关......它只是在幕后或与OnDirty事件平行。 OnDirty事件可能不是您正在寻找的事件,因为自动编号在事件首次发生时不作为值存在。


向我们提供更多关于您的目标的信息,我们将能够为您提供更多帮助。
Adam, can you explain why you''re hunting for this event? As far as I know, there isnt an event tied to the autonumber generation.. it''s just behind the scenes or parrallel to the OnDirty event. The OnDirty event may not be what you''re looking for either, since the autonumber doesnt exist as a value yet when the event first occurs.

Give us a bit more information on what your objective is and we''ll be able to help you out more.


对不起,我想我误读了你的帖子..我假设你正在尝试使用自动编号数据本身。正如OB建议的那样,OnDirty事件可能就是您正在寻找的事件。


如果您试图针对特定条件触发代码,请说出新记录,那么您可以随时在OnDirty事件中添加类似这样的内容:

Sorry I think I misread your post.. I was assuming you were trying to work with the autonumber data itself. The OnDirty event is probably what you are looking for, as OB suggested.

If you''re trying to fire off your code for a specific condition, say a new record, then you can always add something like this to your OnDirty event:

展开 | 选择 | Wrap | 行号


这篇关于生成记录号后立即发生的事件是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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