如何满足条件时灰显文本框和组合? [英] How to gray out text box and combo when a condition is met?

查看:57
本文介绍了如何满足条件时灰显文本框和组合?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,


我是Microsoft Access 2016的新手。 我正在写一张表格。 我有一个组合框控件。 当选择特定值时,此框控件(框控件为4),例如,当"St。路易斯"从框控件中选择,我需要
来灰化以下控件:


Text912


Text894


文字7


组合框8


Text895



请帮助。 感谢您的帮助。



热情的问候,


siumui00



解决方案


可能最简单的方法是使用条件格式。您可以使用Expression Is条件检查从组合中选择的值,然后"禁用"把它变灰的控件。唯一的缺点是,您必须将有条件的
格式化应用于您要禁用的所有控件。


希望它有帮助...


Hello all,

I'm new to Microsoft Access 2016.  I'm working on a form.  I have a combo box control.  When a specific value is selected this box control (box control is 4), example, when "St. Louis" is selected from the box control, I need to gray out the following controls:

Text912

Text894

Text 7

Combo Box 8

Text895

Please help.  Thank you for all your help.

Warm Regards,

siumui00

解决方案

Hi,

Probably, the simplest way is to use Conditional Formatting. You can use an Expression Is condition to check the value selected from the combo and then "disable" the control to gray it out. The only drawback is you'll have to apply the Conditional Formatting to all the controls you want to disable.

Hope it helps...


这篇关于如何满足条件时灰显文本框和组合?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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