Simple Group Option Button Question.

MrMitch

Registered User.
Local time
Yesterday, 20:50
Joined
Oct 19, 2007
Messages
50
I have a 2 button group that I would like, depending on the selecting, to show or hide a Command Button. This is what I have right now, however, if only seems to work when "Yes" is selected. When I try and toggle back to "No", it does not make the button visible. Any help would be appreciated. Thank you.

Private Sub Frame113_AfterUpdate()

If Frame113.Value = 1 Then
Me.ExitBtn.Visible = False
If Frame113.Value = 2 Then
Me.ExitBtn.Visible = True
End If
End If

End Sub
 
Code:
Private Sub Frame113_AfterUpdate()

If Frame113.Value = 1 Then
    Me.ExitBtn.Visible = False
Else
    Me.ExitBtn.Visible = True
End If

End Sub

Try that.
 
Perfect. Thank you very much. :)
 

Users who are viewing this thread

Back
Top Bottom