user click code

awake2424

Registered User.
Local time
Today, 16:22
Joined
Oct 31, 2007
Messages
479
Code:
 Private Sub Check237_Click()
If Me.Check237.Value = "yes" Then
   Me.Text239.Visible = True
Else
   Me.Text239.Visible = fasle
End If
End Sub

I am using the code above and what the desired action is when the Check237 is checked then the Text239 is visible for the user to put in a comment. However, as of now when the check237 is checked the textbox dissapears. Thank you.
 
try

Code:
Private Sub Check237_Click()

    Me.Text239.Visible =Check237
 
End Sub
 
Code:
 Private Sub Check237_Click()
If Me.Check237.Value = "yes" Then
   Me.Text239.Visible = True
Else
   Me.Text239.Visible = [B]fasle[/B]
End If
End Sub

I am using the code above and what the desired action is when the Check237 is checked then the Text239 is visible for the user to put in a comment. However, as of now when the check237 is checked the textbox dissapears. Thank you.

Is the highlighted in your actual code? If so, then check the spelling. Also, the code just above this reply is the easiest way to solve the problem.
 
Code:
 Private Sub Check237_Click()

    Me.Text239.Visible =Check237
 
End Sub

I am using this code and it seems to work, but only after I open the form and check the checkbox and then uncheck it. Once I do that it functions as it should, but then when I close the form it does not save the checkbox format. I attached an image as well. Thank you.
 

Attachments

Users who are viewing this thread

Back
Top Bottom