Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Tick box used to enable text boxes? 1

Status
Not open for further replies.

vincelewin

IS-IT--Management
May 16, 2002
83
GB
Is it possible to have a tick box that will enable text boxes? If so could somone show me how to do it?
 
Hi,

Private Sub Check1_Click()
If Check1.Value = 1 Then
Text1.Enabled = True
End If
End Sub

Jon
 
Hi.

The checkbox should have a click event so try this..

private sub Check1_Click()

if check1.value = 1 then 'checked
text1.enabled = true
else
text1.enabled = false
end if

end sub

Before you begin, set the text box's enabled property to false.

Hope this helps.
 
Or
[tt]
Private Sub Check1_Click()
Text1.Enabled = (Check1 = vbChecked)
End Sub
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top