Originally Posted by
pbaldy
Also, in my experience an accdb created by 32bit Access will open fine in 64bit. An accde created by 32bit Access will not, and you get the first error. I've opened numerous 32bit accdb's in 64bit; you have to in order to convert them.
I have some accdbs that have opened up without errors. So far two others haven't. I've taken one and imported all the objects into a 64 bit Access database, but Function declarations still produce this error. This is occurring in both dbs but I am unfamiliar with this code and not sure how to update it.
Here are the instances where that happens. If I can get through these I might be in the clear.
Code:
Declare Function GetSystemMetrics32 Lib "User32" _
Alias "GetSystemMetrics" (ByVal nIndex As Long) As Long
Code:
Public Declare Function SHAppBarMessage Lib "shell32.dll" (ByVal dwMessage As Long, pData As APPBARDATA) As Long
Code:
Declare Function SetWindowLong Lib "user64" Alias "SetWindowLongA" _
(ByVal hwnd As Long, _
ByVal nIndex As Long, _
ByVal dwNewLong As Long) As Long
Code:
Public Declare Function CallWindowProc Lib "user32" Alias "CallWindowProcA" _
(ByVal lpPrevWndFunc As Long, _
ByVal hwnd As Long, _
ByVal msg As Long, _
ByVal wParam As Long, _
ByVal lParam As Long) As Long