I'm writing a universal function for A LOT of similar buttons on different tab. The buttons is depended on the tab.
So instead of for example:
If Me!TabControlName.Value = 0 Then
If Me!ToggleButton1.Value = True Then
Do Something
End If
If Me!ToggleButton2.Value = True Then
Do Something
End If
ElseIf Me!TabControlName.Value = 0 Then
If Me!ToggleButton1.Value = True Then
Do Something
End If
If Me!ToggleButton2.Value = True Then
Do Something
End If
EndIf
Is there a way I can do something like this ( example):
If Me!ToggleButton1(Me!TabControlName.Value).Value Then
Do Something
EndIf
What I mean by this :
Me!ToggleButton1(Me!TabControlName.Value).Value
is the Value of the Toggle Button 1 on a Specific Tab Control. Like an array...
So instead of for example:
If Me!TabControlName.Value = 0 Then
If Me!ToggleButton1.Value = True Then
Do Something
End If
If Me!ToggleButton2.Value = True Then
Do Something
End If
ElseIf Me!TabControlName.Value = 0 Then
If Me!ToggleButton1.Value = True Then
Do Something
End If
If Me!ToggleButton2.Value = True Then
Do Something
End If
EndIf
Is there a way I can do something like this ( example):
If Me!ToggleButton1(Me!TabControlName.Value).Value Then
Do Something
EndIf
What I mean by this :
Me!ToggleButton1(Me!TabControlName.Value).Value
is the Value of the Toggle Button 1 on a Specific Tab Control. Like an array...