![]() I've found that this is all that's required So, to correct any 32 bit API function calls to work in 64 bit Access you can simply do a find and replace over the complete project in the VBA editor to replace "Declare Function" with "Declare PtrSafe Function". In 64 bit Access it would be declared like this::ĭeclare PtrSafe Function ShellExecute& Lib "shell32.dll" Alias "ShellExecuteA" (ByVal _ LpParameters As String, ByVal lpDirectory As String, ByVal nshowcm As Long) Hwnd As Long, ByVal lpOperation As String, ByVal lpFile As String, ByVal _ With 32 bit Access a function is declared as in the following example, which executes a file in its associated application:ĭeclare Function ShellExecute& Lib "shell32.dll" Alias "ShellExecuteA" (ByVal _ ![]() ![]() Visual Basic for Applications (VBA) is the procedural language used within Access applications. A Windows Application Programming Interface (API) function is one which directly addresses the Windows operating system.
0 Comments
Leave a Reply. |