k3nzyyb > 24-10-15, 11:26 AM
Private Sub TxtDaChon()
For i=1 to 10
If Me.Controls("Chk" &i) = True Then
' Code gì ở đây???
End If
Next i
End Sub
tranthanhan1962 > 24-10-15, 01:59 PM
Sub Demcheckbox()
Dim chbDaChon, i As Integer
chbDaChon = 0
For i = 1 To 10
If Me.Controls("Chk" & i) = True Then
chbDaChon = chbDaChon + 1
End If
Next i
TxtDaChon.Caption = chbDaChon
End Sub
------------------------------------
Private Sub Chk1_AfterUpdate()
Demcheckbox
End Sub
------------------------------------
Private Sub Chk2_AfterUpdate()
Demcheckbox
End Sub
------------------------------------
...
...
------------------------------------
Private Sub Chk10_AfterUpdate()
Demcheckbox
End Sub
k3nzyyb > 25-10-15, 09:58 PM