I have 3 check boxes(only one can be "checked" at the same time) and a Text Box. What do I have to do for this Text Box be available only if Check Box #2 is selected???
1. In the form's design view, set the textbox's Visible property to false.
2. In the checkbox 2 AfterUpdate event add the following code:
Code:
If Checkbox2.Value = -1 Then
Me.Textbox.Visible = True
Else
Me.Textbox.Visible = False
End If
3. In the Form's OnCurrent event, call the CheckBox2 AfterUpdate event:
Code:
Call Checkbox2_AfterUpdate
This sequence will set the textbox to visible or not depending upon the value of the checkbox every time the checkbox value is changed, AND every time the record is viewed.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.