Database Filepath

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hello,

I need to konw the filepath of my database.

The purpose is to open a text file located in the same filepath. The problem
is that the user can install the database (and the text file) anywhere in his
hard drive.

Is there a way to know the filepath of the database?

Thanks you very much,

Claude Fortier
 
I'm not sure how long ago this became available, but CurrentProject.Path
will do it in recent versions of Access.
 
CurrentProject.Path will return the path.

Thanks to everyone, it works! I also learn how to interact with the
application directly.

It was so simple It's nearly a shame I did not find it by myself... :-|

Claude Fortier
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Back
Top