brighteyes
Registered User.
- Local time
- Today, 17:42
- Joined
- Oct 12, 2004
- Messages
- 14
I have a form with an option button called optInTheCabinet and a list box called lstInTheCabinet. When ever optInTheCabinet is clicked, I want lstInTheCabinet visible. The value of optInTheCabinet = 1, and the visible property is set to "No." I am getting the error message "Invalid Use of Property," and the debugger highlights ".IsVisible" What am I doing wrong? Is there a better way to do this?
Private Sub optInTheCabinet_GotFocus()
If Me.optInTheCabinet = 1 Then
Me.lstInTheCabinet.IsVisible
Else
Me.lstNotInTheCabinet.IsVisible
End If
End Sub
Private Sub optInTheCabinet_GotFocus()
If Me.optInTheCabinet = 1 Then
Me.lstInTheCabinet.IsVisible
Else
Me.lstNotInTheCabinet.IsVisible
End If
End Sub
Last edited: