Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

update a front-end database with a new release using vba

Status
Not open for further replies.

aldi07

MIS
Jun 22, 2010
100
CA
Code:
Declare Function apiCopyFile Lib "KERNEL32" Alias "CopyFileA" _
                   (ByVal lpExistingFileName As String, _
                   ByVal lpNewFileName As String, _
                   ByVal bFailIfExists As Long) As Long

I get the following compile error:

The code in this project must be updated to use on 64-bit systems. Please review and uodate Declare statements and the mark them with the PtrSafe attribute.

How do I do that?

Thank you.
 
I did, but the web site did not open. However, I retried right now, and I could finally reach it.
"Declare Function...", should be replaced by
"Declare PtrSafe Function..."
It seems it will work, since the statement has been accepted without error.
I will run it, and let you know.
Thank you.
 
OK. Here it is:

Code:
Declare PtrSafe Function apiCopyFile Lib "KERNEL32" Alias "CopyFileA" _
                   (ByVal lpExistingFileName As String, _
                   ByVal lpNewFileName As String, _
                   ByVal bFailIfExists As Long) As Long
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top