I have a very little question about a Checkbox.
How to make that it does something when checked or not.
So I have a
CMD Button
Check1.
With cmdbutton must it be somethng like: if Check1 = Checked then Msgbox "owyeah" else "Check it"
LoLzz
Thnx
Printable View
I have a very little question about a Checkbox.
How to make that it does something when checked or not.
So I have a
CMD Button
Check1.
With cmdbutton must it be somethng like: if Check1 = Checked then Msgbox "owyeah" else "Check it"
LoLzz
Thnx
VB Code:
Private Sub Check1_Click() If Check1.Value = vbChecked Then 'do something Else 'do something End If End Sub Private Sub Form_Load() 'for example Call Check1_Click End Sub
With a CMD:
VB Code:
Private Sub Command1_Click() If Check1.Value = vbChecked Then MsgBox "It's checked!" Else MsgBox "It's not checked!" End If End Sub
and it works, thank you :]
I want to add some reputation to you but I have to spread some ;[