Check Box

G

Guest

I have a check box in a form. I want a msg box to pop up everytime it is
clicked on. Asking the user if he/she wants to continue. If user says yes
then the box changes from unchecked to checked or from checked to unchecked.
If user says no then the box stays the same. Im having problems writing the
code for this.
Thanks to those who can help.
 
F

FD

tanhus said:
I have a check box in a form. I want a msg box to pop up everytime it is
clicked on. Asking the user if he/she wants to continue. If user says yes
then the box changes from unchecked to checked or from checked to unchecked.
If user says no then the box stays the same. Im having problems writing the
code for this.
Thanks to those who can help.

Ok Tanhus urs is not a big issue.
on checkbox click write following in VBA code.

Private Sub Check10_Click()
If MsgBox("Yes/No", vbYesNo) = vbYes Then Check10.Value = Not
Check10.Value
End Sub

Good Luck!!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Check box 5
Select Case for "Yes/No" box 2
Current Record in Visual Basic.... 2
Check box question 2
check box - check all 1
If check box changes 1
check box, you can't print this form unless.. 5
Check Box 4

Top