Avatar of Murray Brown
Murray Brown
Flag 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

Microsoft AccessVBA

Avatar of undefined
Last Comment
Jim Dettman (EE MVE)

8/22/2022 - Mon
Jim Dettman (EE MVE)

Murray,

   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.

Jim.
ASKER CERTIFIED SOLUTION
Bill Prew

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
Murray Brown

ASKER
Hi Jim. Thanks but I am still not sure what this code should be converted to
Murray Brown

ASKER
Thanks very much
This is the best money I have ever spent. I cannot not tell you how many times these folks have saved my bacon. I learn so much from the contributors.
rwheeler23
Jim Dettman (EE MVE)

<<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.

Jim.