title: Calling SubForm routine from another Form
body: <p>I have a form X which contains a Subform Y. There is a routine which is defined in the Y form. I need to call that routine from another form Z (which opens whenever user click on some button on subform Y) on closing event of this form Z. Form X is open. What I have tried till now is not working:</p>
  
  <p>// in form Z</p>
  
  <pre><code>Call Forms("X").SomeRoutine
  Call Forms("Y").SomeRoutine
  </code></pre>
  
  <p>But every time I am getting RunTime Error 2450 that Access can't find the form.</p>