Rest Toggle Control

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?
 
S

Svetlana

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top