移动到另一个记录时触发子窗体的可见性。 [英] Triggering the visibility of a subform when moving to another record.
问题描述
每当我转到不同的记录时,我想决定子表单的可见性。 该决定基于主表单上控件的特定值。 值从0到6,如果是6,则看到子表单没有意义。
I want to decide the visibility of a subform whenever I go to a different record. That decision is based on a particular value of a control on the main form. Values go from 0 to 6 and if it is 6 there is no point in seeing the subform.
我通过不同的按钮移动到不同的记录,一些带有嵌入式宏,一些带有事件过程或者通过具有不同源代码的组合框,具体取决于我如何过滤主表单。
I move to a different record through different buttons, some with embedded macros, some with event procedures or through a combo box that has a varying source code depending on how I have filtered the main form.
这似乎是一个愚蠢的问题,但我找不到每次触发的相应事件我已移至新记录,因此我可以检查该值并设置子表单的可见性。 如果可能的话,我还希望每当
我添加一条新记录时将可见性设置为true,但这似乎更简单。
This seems a silly question but I can not find an appropriate event that is fired each time I have moved to a new record so I can check that value and set the visibility of the subform. If possible, I would also like to set the visibility to true whenever I add a new record, but that seems simpler.
Rob Monroe
Rob Monroe
推荐答案
你好Rob,
您是否尝试过使用Form的Current事件?
Have you tried using the Form's Current event?
>
这篇关于移动到另一个记录时触发子窗体的可见性。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!