Link to home
Create AccountLog in
Avatar of pcalabria
pcalabriaFlag for United States of America

asked on

Need to programatically start a MS Access MDE using the Access Runtime

I have an Access compiled program (Program.mde) which I need to start programmatically from another instance of access.
Is there any way I can start an Access MDE programmatically when the machine is using the Microsoft Access Runtime 2016?

When my code is executed on machines which have Access installed, I use:

strPath1 = "C:\Program Files\Microsoft Office\Office\MSACCESS.EXE"
strParameter = "C:\Disti-Master\Database\Inventory_Program.mde"

Call Shell(strPath1 & " " & strParameter)

MY PROBLEM OCCURS WHEN THE MACHINE USES THE MSACCESS RUNTIME.  
IN this case I can't figure out how to start the program using the shell command.
ASKER CERTIFIED SOLUTION
Avatar of PatHartman
PatHartman
Flag of United States of America image

Link to home
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
See answer
Avatar of pcalabria

ASKER

@Pat. The problem is I can't find the MSAccess.exe program on the machines with the runtime installed.. did I miss it?
Try omitting the path and just run the application.  If there is only a single version of Access installed, Windows will find it.  The location of MSACCESS.exe is dependent on where it was installed.  If you can't find it by searching, perhaps it got installed in a hidden directory.  I don't have any computer that has the runtime installed so I can't even look for you.
Thanks!  I don’t know how I missed it the first time... found it in an office15 directory.. that solved the problem!
I have trouble seeing what's in front of my face too :)  Glad you found it.