GoodLife22
Registered User.
- Local time
- Today, 07:04
- Joined
- Mar 4, 2010
- Messages
- 86
I have a standard check box in my form. I need write my code that IF the box is NOT checked and then my user goes and clicks on the box it will give a message box.
I first thought of a LOST FOCUS event, but that doesn't help if it wasn't checked and then checked.
I thought about an on change, but that doesn't do it IF it is originally checked and then my user unchecks it.
So what is the best way to do this:
My user loads the record, and IF the [CHKBX1] is currently FALSE, then changes to TRUE, provide message box?
Thanks you.
I currently have (which I know is not going to work for me)
I first thought of a LOST FOCUS event, but that doesn't help if it wasn't checked and then checked.
I thought about an on change, but that doesn't do it IF it is originally checked and then my user unchecks it.
So what is the best way to do this:
My user loads the record, and IF the [CHKBX1] is currently FALSE, then changes to TRUE, provide message box?
Thanks you.
I currently have (which I know is not going to work for me)
Code:
Private Sub CHKBX1_LostFocus()
If CHKBX1 = True Then
MsgBox "You have checked the update2012 box. Please remember to send the follow-up email with 4 attachments."
Else
'do nothing
End If