用于控制BeforeUpdate的通用函数 [英] Generic function for control BeforeUpdate
本文介绍了用于控制BeforeUpdate的通用函数的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有一个通用的AfterUpdate函数应用于连续子表单中的14个文本框,但我无法找出使用Cancel进行BeforeUpdate的语法。这甚至可能吗?
I have a generic AfterUpdate function applied to my 14 text boxes in a continuous subform, but I can''t figure out the syntax to do BeforeUpdate with Cancel. Is this even possible?
展开 | 选择 | Wrap | 行号
推荐答案
芯片。
我认为不可能在BeforeUpdate属性中使用表达式。
但是可以使用这个方法。
试试这个...我稍微调整了一下
Try This... I tweaked it a bit
展开 | 选择 | Wrap | / span> 行号
AJ,我想到了并尝试了完全相同的代码,尽管我补充:
第3行.CheckDay = False
我无法取消它。我似乎无法找到有关取消如何工作的任何文档。我的意思是,我知道如何使用它,但不知道为什么。
我决定在FIshVal链接的帖子#9中使用DonRayner的方法,至少在我可以对那里更高级的材料进行分类之前。
感谢您的回复如此之快,
芯片
AJ, I thought that and tried the exact same code, though I added:
line 3. CheckDay=False
I couldn''t get it to Cancel. I can''t seem to find any documentation on how Cancel works. I mean, I know how to use it, but not why.
I''ve decided to go with DonRayner''s method in Post #9 of the thread that FIshVal linked, at least until I can sort through the more advanced material there.
Thanks for responding so quickly,
Chip
这篇关于用于控制BeforeUpdate的通用函数的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文