I want to give user a warning of the ramifications of checking a box (right after they've checked it) and then give them a choice to "cancel" their action (and "uncheck" the box automatically) if they would like. Not sure where to put the event, or how to write the event, obviously, but here's what I have that's not working...
Code:
Private Sub chkInactive_BeforeUpdate(Cancel As Integer)
Dim intResponse As Integer
intResponse = MsgBox("This record will no longer show in end-user database. Do you want to continue?", _
vbYesNo + vbQuestion, "Inactivating Record")
If intResp = vbNo Then
chkInactive.Undo
Else Me!dateInactivated = date()
End If
End Sub