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 Chriss Miller 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
Joined
Jun 22, 2010
Messages
100
Location
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.
 
Same answer I provided in the other forum. Did you s check it out?

Duane
Minnesota
Hook'D on Access
MS Access MVP 2001-2016
 
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.
 
It worked fine. Thank you Duane
 
Please mark the correct post so other users know the thread is closed.

Duane
Minnesota
Hook'D on Access
MS Access MVP 2001-2016
 
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