• We just launched and are currently in beta. Join us as we build and grow the community.

"Compile error: The code in this project must be updated for use on 64-bit systems" error message

WelpNate

Clan Leader
Divine
W Rep
0
0
0
Rep
0
W Vouches
0
0
0
Vouches
0
Posts
157
Likes
141
Bits
2 MONTHS
2 2 MONTHS OF SERVICE
LEVEL 1 300 XP
access.jpg


This error happens when you run a function that is designed for 32-bit only system.

If you program the function in Microsoft Access 32-bit system and run it on 64-bit version, you will most likely see this error. To fix this problem, all you have to do is add a keyword PtrSafe

before the function name like the following:

Private Declare PtrSafe Function GetComputerNameA Lib "kernel32" (ByVal lpBuffer As String, nSize As Long) As Long

This article is also an answer from the comments posted at Employee Record Management Information System.

 

442,401

317,942

317,951

Top