title: How to exit the program immediately?
body: <p>Using VB 6 and Access 2003</p>
  
  <p>I am using two command buttons (process, cancel)</p>
  
  <p>When I run the Program,  press cancel button – The form unloads immediately.<br>
  If I press the Process button and then Cancel button, the form is not unloading immediately.</p>
  
  <p>In Process button, I wrote the code like this:</p>
  
  <p><code>Getting the data from the database and creating a record set, creating a temporary table…,</code></p>
  
  <p>Is there any way to exit the program immediately at the time of VB code working with database (like Creating Record set, creating temporary tables)?</p>
  
  <p>In Cancel button, I wrote this code</p>
  
  <pre><code>Unload me
  </code></pre>
  
  <p>How to exit the Program immediately when it is working with database?</p>
  
  <p>Need VB 6 Code Help</p>