Rest Toggle Control

  • Thread starter Thread starter SHC
  • Start date Start date
S

SHC

I have two toggle controls that each reveal seperate hidden subforms.
Each toggle when pressed will also hide the subform revealed by the
other toggle control. However, this results in both toggles appearing
selected.

Is there any code I can add to the 2nd toggle that will reset the 1st
toggle to its original state, and visa versa?
 
Private Sub Choice1_AfterUpdate()
If Me.Choice1=-1 Then
Me.Choice2 = 0
End If
End Sub

Private Sub Choice2_AfterUpdate()
If Me.Choice2=-1 Then
Me.Choice1 = 0
End If
End Sub
 
Back
Top