Hello
I am trying to make a checkbox add a number into a label.
Example:
If a first checbox is checked, a number 1 will generate in another checkbox. If i uncheck the checkbox the number 1 will go away.
I figure that ill need a loop to loop through all "checkbox lables" and "number field lables" every time any checkbox is checked/unchecked.
What im trying so far:
Private Sub Label_check1_Click()
Dim i As Integer
If Label_check1.Caption = Chr(254) Then
For i = 1 To 2
("Label_check" & i).Caption = Chr(168)
("Label_nr" & i).Caption = ""
Next i
Else
For i = 1 To 2
("Label_check" & i).Caption = Chr(254)
("Label_nr" & i).Caption = 3
Next i
End If
End Sub
For now im just testing if its possible to assign multiple labels a number through a loop, but its not working :/
Bookmarks