title: how to test if a particular control has focus?
body: <p>i have access 2007 form and i want to test if a particular control (toggle button) has the focus , </p>
  
  <p>something like :</p>
  
  <pre><code>if gotfocus(mytoggle) then
  dosomething
  endif
  </code></pre>
  
  <p>or maybe like :</p>
  
  <pre><code>if me.mytoggle.setfocus = true then
  dosomething
  endif
  </code></pre>
  
  <p>I have searched and cannot find this , can someone tell me what is correct top to do this ?</p>