Hi,
I have a basic Access database that is erroring on me now that it was updated to Windows 11.
The error message is
Compile Error
The code in this project must be updated for use on 64-bit systems. Please review and update Declare statements and then mark them with the PtrSafe attirbute
Here is the code it is erroring on. This is a business system so I cannot change to 32-bit
I am not VBA savvy so any assistance with what I need to change will be helpful.
Private Declare Function apiShellExecute Lib "shell32.dll" _
Alias "ShellExecuteA" _
(ByVal hWnd As Long, _
ByVal lpOperation As String, _
ByVal lpFile As String, _
ByVal lpParameters As String, _
ByVal lpDirectory As String, _
ByVal nShowCmd As Long) _
As Long