473,387 Members | 3,033 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

How do I find the MSAccess.exe file path??

Hello

I would like to be able to retrieve the path of the MSAccess.exe file
through code.

Using (Application.CurrentProject.BaseConnectionString) :
I can retrieve the path of the workgroup and the mdb file.

Using (Application.DBEngine.IniPath) :
I can retrieve what seems to be the Windows Registry Key path for the
Jet engine

But I can seem to find a function to retrieve the MSAccess.exe path

Does anyone know of a way?

Thanks
G.Gerard
Nov 13 '05 #1
2 18578
Try the follwing code:

Dim strPath As String

strPath = Left(CurrentDb.Name, InStrRev(CurrentDb.Name, "\"))

MsgBox "current path name to database is " & vbCrLf & _
strPath

MsgBox "current path to msaccess.exe is " & vbCrLf & _
SysCmd(acSysCmdAccessDir)

--
Albert D. Kallal (Access MVP)
Edmonton, Alberta Canada
pl*****************@msn.com
http://www.members.shaw.ca/AlbertKallal
Nov 13 '05 #2
SysCmd(acSysCmdAccessDir)

--
Doug Steele, Microsoft Access MVP
http://I.Am/DougSteele
(no e-mails, please!)

"GGerard" <gg*****@nbnet.nb.ca> wrote in message
news:%F*********************@ursa-nb00s0.nbnet.nb.ca...
Hello

I would like to be able to retrieve the path of the MSAccess.exe file
through code.

Using (Application.CurrentProject.BaseConnectionString) :
I can retrieve the path of the workgroup and the mdb file.

Using (Application.DBEngine.IniPath) :
I can retrieve what seems to be the Windows Registry Key path for the
Jet engine

But I can seem to find a function to retrieve the MSAccess.exe path

Does anyone know of a way?

Thanks
G.Gerard

Nov 13 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

15
by: (Pete Cresswell) | last post by:
I've got a .BAT file that I use for executing various MS Access apps that I wrote way back in the days of 2.0. It's evolved over time, but it still contains a number of possible paths to...
3
by: Pedro Maria Ferro da Cunha | last post by:
I spend a lot of time making 2 thousand pictures and saving them as an article name. jpg. I have a table with the article name and name of the file in jpg (format). How can I make an...
3
by: Bill Short | last post by:
On one of my users desktops I have setup multiple icons to open Access applications (Access 2k). In the target line I have specified the path to msaccess.exe, the path of the system.mdw and the...
11
by: Yelena Varshal via AccessMonster.com | last post by:
Hello, I have a problem with one of msaccess.exe API calls that work on my desctop but does not work on the laptop from within MS ACCESS. There is a lot of differences between 2 computers...
1
by: rolandsk | last post by:
I need help to schedule a MsAccess procedure I want the procedure to run in backgrund and not the MsAccess file to be open during the time when the procedure runs. The procedure in MsAccess picks...
3
by: SimYing | last post by:
Is there any way to read and query data from Microsoft Access? Actually, i had anapplication which build using Python, wxPython, NumArray and etc. Now i need to find a way to retrieve data from...
1
by: sumannaidu | last post by:
Hi, There are 2 tables have been created in MSAccess with data and stored in some path (.mdb file). Ex: 1.Employee_Det 2.Dept_Det I don't know the structure of those tables.........
0
by: bbrewder | last post by:
I am struggling with some MSAccess automation issues. Basically, we have a .Net application that uses MSAccess for reporting (legacy code). We are able to launch MSAccess fine and even work with...
4
by: Salad | last post by:
I have a situation where some, not all, users get the message "Couldn't find file "F:\AccessApps\AppName.mdw". This file is required for startup". My app the users are attempting to access is...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.