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

track working/file directory 1

Status
Not open for further replies.

SwingXH

Technical User
Jun 15, 2004
97
US
I want a Access program to run only under certain location to prevent copying it to anywhere else. I am thinking of making a file location track and return to the program as the password. But don't know how to get the location?
Anybody can help on this or any other ideas?
Thanks a lot!
SwingXH
 
To get the path of the current db:

[tt]currentproject.path ' 2000+ versions[/tt]

previous versions, try:

[tt]currentdb.name[/tt]

- you'd need to strip of the filename in the latter sample, perhaps this question would be better addressed in for instance the VBA forum (forum705) or other topics (forum181)?

Roy-Vidar
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top