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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Checking Filepath of MSAccess.exe

Status
Not open for further replies.

Ed2020

Programmer
Nov 12, 2001
1,899
GB
I am having some problems with users of one of my systems taking copies of MS Access 2000 and putting them on their local drives. They are then launching my systems from this copy of Access, rather than the network copy.

I am not entirely happy about this and would like to code my systems to only work when launched with the networked MS Access.

Is there any way of checking the filepath of the Access executable that the current database is running in?

Ed Metcalfe
ed_metcalfe@hotmail.com
 
What i can help you is to provide the following coding which gets the full path of where your database is residing...

Left$(CurrentDb.Properties(0), InStr(1, CurrentDb.Properties(0), Dir(CurrentDb.Properties(0))) - 1)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top