Option button / txtbox - Visible/enabled
Posted by tee on January 21, 2002 7:43 PM
Hi Everyone
How do I make a txtbox visible depending on the result of an option button.
I have 3 option buttons in a frame. I have a txtbox with a date in it. When option button 1 is true, I want the txtbox for the date to be visible = false or enabled = false.
I have tried this but it does not work.
Private Sub OptNoVIS_Click()
If OptNoVIS = True Then
txtVisDate.Visible = False
Else:
txtVisDate.Visible = True
End Sub
Many thanks again.
tee