By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
464,773 Members | 1,197 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 464,773 IT Pros & Developers. It's quick & easy.

Checkbox controlling a Textbox visibility

P: 4
I have checkbox's: shop, customer, field, and vendor. When the boxes aren't checked (=false) I would like all the text boxes underneath each check box to be invisible. The textboxes are labeled date issued, rev issued, # of copies and issued by. Ex: Shop checkbox is checked(True) i want the text fields to become visible. I tried putting code in the checkbox's after update event field, but I can't get it to work. Can you please help me with the code. I have only taken basic programming language courses, but would like to learn more! Any help is appreciated.
Jun 8 '07 #1
Share this Question
Share on Google+
2 Replies

MSeda
Expert 100+
P: 159
Could you post the code you tried?
Jun 9 '07 #2

NeoPa
Expert Mod 15k+
P: 31,770
In the AfterUpdate event procedure have some code SIMILAR to this :
Expand|Select|Wrap|Line Numbers
  1. Private Sub chkBox_AfterUpdate()
  2.   txtBox1.Visible = chkBox
  3. End Sub
This relies on a 2-way CheckBox. .Visible doesn't want a Null value.
Jun 9 '07 #3

Post your reply

Sign in to post your reply or Sign up for a free account.