title: Debug a bad DLL calling convention
body: <p>How do I debug a bad DLL calling convention error in MSAccess VBA code?</p>
  
  <p>I made some changes to a function in a module and then got the error. How do a debug it to find the cause?</p>
  
  <p>The error occurs on the Exit function statement of the function.</p>