title: VBA: Why must I set focus to control every time?
body: <p>I am creating a personal Library Inventory system using an Access 2007 database. In code, whenever I reference the <code>.Text</code> property of a form control, whether it be changing the value, or simply checking the value in an IF statement, I get prompted with <code>Run-time error '2185': You can't reference a property or method for a control unless the control has the focus</code>.</p>
  
  <p>Why is this? </p>
  
  <p>For setting the <code>.Text</code> it's not a huge deal, but when I'm checking the value in an IF statement, I can't set the focus when I'm checking multiple conditions.</p>