选择完成后,如何显示其他隐藏选项? [英] How do I display additional hidden choices when a selection is made?

查看:60
本文介绍了选择完成后,如何显示其他隐藏选项?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在创建一个表单供用户提交计算机访问权限。我有几个选择供他们选择,但是根据选择,我想要显示隐藏的选项供他们选择。在属性表中,我隐藏了那些标签,以便它们不会显示在主表单上。当主要选择时,如何让它们显示?

I am creating a form for users to submit computer acess. I have several choices for them to choose, however depending on the choice there are hidden options that I want to have display for them to choose from too. In the property sheet I have those lables hidden so that they don''t display on the main form. How to I get them to display when a primary choice is made?

推荐答案

这是你需要使用一点VBA代码的东西。你选择使用什么样的控制? (例如选项组,组合框等)


Pat
This is something that you need to use a little bit of VBA code for. What kind of control are you using for the choices? (e.g. option group, combo box, etc.)

Pat


谢谢..我正在使用复选框控件。
Thanks..I am using a check box control.


好的,一般来说,假设你有一个名为 chk 的复选框和一个名为 lbl 的标签。在复选框的On Click事件中,此代码将实现您正在寻找的内容:

OK, speaking generally, suppose you have a check box called chk and a label called lbl. In the On Click event for the check box, this code will achieve what you''re looking for:

展开 | < span class =codeLinkonclick =selectAll(this);>选择 | Wrap | 行号


这篇关于选择完成后,如何显示其他隐藏选项?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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