FahadTiger
Member
- Local time
- Today, 02:15
- Joined
- Jun 20, 2021
- Messages
- 120
Hi my Expert..
I have button to select or deselect all OptionButton in continuous form and change its caption ...but its select just first OptionButton ..not all OptionButton
Private Sub cmdSelectAll_Click()
' Toggle the state of OptionButton1
Me.OptionButton1.Value = Not Me.OptionButton1.Value
' Change the caption of the command button
If Me.OptionButton1.Value = True Then
Me.cmdSelectAll.Caption = "Deselect All"
Else
Me.cmdSelectAll.Caption = "Select All"
End If
End Sub
any advice...thank you
I have button to select or deselect all OptionButton in continuous form and change its caption ...but its select just first OptionButton ..not all OptionButton
Private Sub cmdSelectAll_Click()
' Toggle the state of OptionButton1
Me.OptionButton1.Value = Not Me.OptionButton1.Value
' Change the caption of the command button
If Me.OptionButton1.Value = True Then
Me.cmdSelectAll.Caption = "Deselect All"
Else
Me.cmdSelectAll.Caption = "Select All"
End If
End Sub
any advice...thank you