How do I show a textbox with a yes/no function.

  • Thread starter Thread starter Rutie
  • Start date Start date
R

Rutie

Hello,
I have a continuous form where I've got a Yes/No function for each
record. What I want to do is, when the Yes/No function is clicked (this
means it will be yes or 1) I want to show (or make visible) a textbox
where I can put in some data.
Can someone help me with this problem.
 
Yes is -1. You could use something like this in the check box After Update
event and the form's Current event:

If Me.CheckBoxName = -1 Then
Me.TextBoxName.Visible = True
Else
Me.TextBoxName.Visible = False
End If

You could also make the code a public sub or function and call it from an
event.
 
Hi,
This thing works, but in a continuous form all the records change. The
meaning of this all is that the textbox in a certain record becomes
visible or not.
Thx
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top