title: Run time error 2185
body: <p>I getting a <code>run time error 2185</code>, <em>"You can't reference a property or method for a control unless the control has the focus ..."</em>.</p>
  
  <p>This is my code that I am using.</p>
  
  <pre><code>Private Sub Command5_Click()
      Dim cardno As Integer
      cardno = cardnumber.Text
      DoCmd.OpenForm "search_card_number", acNormal, , WHERE &amp; cardno = [Account Number]
  End Sub
  </code></pre>