根据另一个字段是否为空来隐藏文本框 [英] Hiding a Text Box depending on whether another field is empty or not

查看:58
本文介绍了根据另一个字段是否为空来隐藏文本框的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我真的很新。我在Access 2010工作。我做了以下工作,我的[Probation Ends:]现在总是隐身了。我有一个标签盒,我改为文本框。我将可见格式设置为是,可以缩小为是。控制源是[Probation Ends:],也就是名称。我添加了一个事件如下:

I''m really new. I''m working in Access 2010. I did the following and my [Probation Ends:] is always invisible now. I have a Label Box that I changed to a Text Box. I set the Format for Visible to Yes and Can Shrink to Yes. The Control Source is [Probation Ends:] and that is the Name also. I added an Event as follows:

展开 | 选择 | Wrap | 行号

推荐答案

尝试将代码放入form'的OnCurrent事件。
Try putting your code in the form''s OnCurrent event.


这是一份报告。我没有看到OnCurrent ......
This is a report. I don''t see OnCurrent...


将文本框的名称更改为与Control Source不同。然后将您的代码(带有新控件名称)放在Detail部分的OnFormat事件中。
Change the name of your textbox to be different than it Control Source. Then put your code (with the new control name) in the Detail section''s OnFormat event.


这篇关于根据另一个字段是否为空来隐藏文本框的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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