title: Why is my .setfocus ignored?
body: <p>I have an Access form with a textbox that is meant to allow for repeatedly typing a number, hitting enter, and letting a script do stuff.  For speed, the field should keep the focus after <code>DoStuff()</code> is done.</p>
  
  <p>However, while I'm sure that <code>DoStuff()</code> is run, the focus always goes to the next field in the tab order. It's like <code>Me.MyFld.SetFocus</code> is being ignored.</p>
  
  <p>How do I keep the focus on this field after <code>DoStuff()</code> is done?</p>
  
  <pre><code>Private Sub MyFld_KeyDown(KeyCode As Integer, Shift As Integer)  
       If KeyCode = vbKeyReturn Then  
           DoStuff  
           Me.MyFld.SetFocus  
       End If
  End Sub
  </code></pre>