title: Reference Calling Form from a Module
body: <p>I have a function within a module that opens my Home Page Form:</p>
  
  <pre><code>Function goto_home()
      Dim stDocName As String
  
      'DoCmd.Close acForm, "CallingForm.Name" , acSaveYes
      stDocName = "home_page"
      DoCmd.OpenForm stDocName
  End Function
  </code></pre>
  
  <p>It's in a module because I have command buttons on all my forms that use the code instead of duplicating it within each Form Object.</p>
  
  <p>The commented line in my code should close the calling form before the home page is opened. If I was doing it from a form object I would use <code>me.form.name</code> but you can't do that in a module. </p>
  
  <p>Is there an equivalent module syntax that allows reference to the Calling Form?</p>