Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Where is Access running from?

Status
Not open for further replies.

bez999

Programmer
Oct 3, 2003
99
0
0
GB
Hi Guys

Does anyone know if it is possible to find out the path of Access itself from within VBA?
I am writing some code to automatically compact the back end and it creates a BAT file that runs Access but it needs the full path of Access. Different versions will be in different named folders so I want to find out the path automatically when building the BAT file.

Any ideas, please?

Regards
Chris Bezant
 
Someone in the office just gave me this:
Application.SysCmd(acSysCmdAccessDir) & "MSACCESS.EXE"

and it works :eek:)

Regards
Chris Bezant
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top