Yes. You need one small modification. Add PtrSafe after the word Declare.
Private Declare PtrSafe Function CopyFileA Lib "kernel32" _
(ByVal ExistingFileName As String, _
ByVal NewFileName As String, ByVal FailIfExists As Long) As Long
If you are a Visitor, go ahead and post your reply as a
new comment, and we'll move it here for you
once it's approved. Be sure to use the same name and email address.
This thread is now CLOSED. If you wish to comment, start a NEW discussion in
Access Developer 9.