title: Call a sub from a function in Access 2010
body: <p>My MS Access application has a subroutine which fires after I update one control on a form.</p>
  
  <pre><code>Public Sub cboCrew_AfterUpdate()
      ...do some work...
  End Sub
  </code></pre>
  
  <p>I would like to call this same sub from a function I have defined in Module1</p>
  
  <pre><code>Function my_function()
       Call cboCrew_AfterUpdate
  End Function
  </code></pre>
  
  <p>This code throws the error: "Compile Error  Sub or Function not defined"</p>
  
  <p>I suspect that the problem is that I am not being specific enough, in my call to the sub.
  Do I need to reference the sub with <code>"some_modulte_name.sub_name"</code> ?
  Can anyone tell me what I am missing?</p>