title: How to trigger BeforeUpdate event on a checkbox only?
body: <p>I have a form with a checkbox that requires a password in order to be ticked.</p>
  <p>The problem is, after the event is finished and I click outside of the box it still asks me for a password.</p>
  <p>Update: The event completes. If I click somewhere else it triggers again.</p>
  <pre class="lang-vb prettyprint-override"><code>Private Sub Signed_by_Mike_BeforeUpdate(Cancel As Integer)
      If InputBox(&quot;You must provide the correct password to Lock or Unlock CheckBox!&quot;, &quot;Password Input&quot;) &lt;&gt; &quot;password&quot; Then
          MsgBox &quot;Wrong Password Entered. Operation aborted!&quot;, vbCritical
          Cancel = True
      End If
  End Sub
  </code></pre>
  <p>I expected this event to take place only on the checkbox, but it does happen if I click anywhere in the form afterwards.</p>