title: Error while Integrating Camera to MS Access
body: <p>I got the code from :</p>
  
  <p><a href="https://www.developerfusion.com/thread/46191/how-to-capture-picture-using-webcam-in-vb60/" rel="nofollow noreferrer">https://www.developerfusion.com/thread/46191/how-to-capture-picture-using-webcam-in-vb60/</a></p>
  
  <p>However while using this code I got an compilation error></p>
  
  <p>The code in this project must be updated for use on 64-bit systems. Please review and update Declare Statements and then mark them with PtrSafe attribute.</p>
  
  <p>I used :</p>
  
  <pre><code>#If VBA7 Then
      Private Declare PtrSafe Sub Sleep Lib "kernel32" (ByVal ms As LongPtr)
  #Else
      Private Declare Sub Sleep Lib "kernel32" (ByVal ms as Long)
  #End If
  </code></pre>
  
  <p>It doesnt work.</p>