Use a textbox instead of label and try to code something like this...
Private Sub CheckBox1_Click()
abc = IIf(CheckBox1.Value = True, 1, 0) + IIf(CheckBox2.Value = True, 1, 0) + IIf(CheckBox3.Value = True, 1, 0)
TextBox1.Value = abc
End Sub
Private Sub CheckBox2_Click()
abc = IIf(CheckBox1.Value = True, 1, 0) + IIf(CheckBox2.Value = True, 1, 0) + IIf(CheckBox3.Value = True, 1, 0)
TextBox1.Value = abc
End Sub
Private Sub CheckBox3_Click()
abc = IIf(CheckBox1.Value = True, 1, 0) + IIf(CheckBox2.Value = True, 1, 0) + IIf(CheckBox3.Value = True, 1, 0)
TextBox1.Value = abc
End Sub
Private Sub TextBox1_Change()
If TextBox1.Value > 2 Then
CommandButton1.Enabled = True
Else
CommandButton1.Enabled = False
End If
End Sub
Bookmarks