title: "Kill" / "FileCopy" leads to permission denied
body: <p>I'm having a problem with my Access VBA macro which for some reason is breaking on those lines with error "Permission Denied [Run-time error 70]:</p>
  
  <pre><code>sOutputFile = CurrentProject.Path &amp; "\Output Files\Recon\" &amp; sDate &amp; " " &amp; sClient &amp; " Cash Recon.xlsx"
  sTemplateFile = CurrentProject.Path &amp; "\Temp Files\Template_Listed.xlsx"
  If Dir(sOutputFile) &lt;&gt; "" Then Kill sOutputFile
  FileCopy sTemplateFile, sOutputFile
  </code></pre>
  
  <p>What's getting "pointed out" directly is the "Kill sOutputFile" phrase.</p>
  
  <p>It is worth to mention, that I do not have any of the files open, I have full access to the directories, and not long ago (before declaring sOutputFile and sTemplateFile) they've been both cleared. </p>
  
  <p>Any help is much appreciated and I'm willing to share more of my code if needed.</p>
  
  <p>Edit: Also, from time to time, the macro goes to the next line and breaks at the FileCopy instead.</p>