Link to home
Start Free TrialLog in
Avatar of Murray Brown
Murray BrownFlag for United Kingdom of Great Britain and Northern Ireland

asked on

Access VBA convert declaration to 64 bit

Hi. I have to update the following Access VBA code to work on a 64 bit machine. What would I convert it to? Thanks

Public Declare Function ShellExecute 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

Open in new window

Avatar of Jim Dettman (EE MVE)
Jim Dettman (EE MVE)
Flag of United States of America image


   If you look in your last question, I posted a link to a help file which contains all the common API calls and what they need to be modified to for 64 bit.

Avatar of Bill Prew
Bill Prew

Link to home
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Murray Brown


Hi Jim. Thanks but I am still not sure what this code should be converted to
Thanks very much
<<Hi Jim. Thanks but I am still not sure what this code should be converted to>>

  You download the help file, lookup the call, and it tells you what it needs to be for 64 bit.

  The other article I pointed you to explains what's required for 64 bit as far as PtrSafe and the new data types.  Also explains the compiler constants, and which of those you should be using when.

 There are few in's and out's to this....what you need to do depends on if you are developing a DB that will be used for both 32 and 64 bit or not.  It's not an entirely straight forward process and you should understand some of the details involved.