View Full Version : value conditionated field


tshirt
07-13-2008, 12:16 PM
hi to everyone
i´m trying to do the following .... input a value and is it true a field is activated for input.
I mean this.... on the form there's a question like ¿do you have a car ? and only if the answer is yes, an input field (textbox) will be activated for input the brand.

Thanks in advance and sorry for my limited english

pbaldy
07-13-2008, 02:23 PM
In the after update event of the control (I'm assuming a checkbox):

If Me.CheckboxName = True Then
Me.OtherControl.Visible = True
Else
Me.OtherControl.Visible = False
End If

boblarson
07-13-2008, 03:39 PM
In the after update event of the control (I'm assuming a checkbox):

If Me.CheckboxName = True Then
Me.OtherControl.Visible = True
Else
Me.OtherControl.Visible = False
End If

And a shorter, more efficient way:


Me.OtherControl.Visible = Me.CheckboxName