title: How to use Form Controls in Modules
body: <p>In my modules, I want to use my controls from my form. For example: I want to set focus on a textbox after a certain Sub. </p>
  
  <p>My current solution is to make a subroutine to set all controls in a public variable (see below).</p>
  
  <p>My questions:</p>
  
  <ol>
  <li>What is the best practice? How do people usually do this?</li>
  <li>When should I call my subroutine? (is it the first call in the <code>FORM_LOAD</code> sub?)</li>
  </ol>
  
  <pre class="lang-vb prettyprint-override"><code>Public TBnr As TextBox
  Public Sub controlsInitieren()
      Set TBnr = Forms("frm_TreeView_Example").pstNr
  End Sub
  </code></pre>