How to get the path of our program

M

Mota

Hello;
How to know the path,where my program (in its Run-Time version) is installed
by the user?
Thank you.
 
A

Albert D. Kallal

currentdb.name returns the full pathname where the mde resides.


If you need *just* the file name, then use:

Public Function dbPath() As String

dbPath = CurrentDb.Name
dbPath = Left(dbPath, Len(dbPath) - Len(Dir(dbPath)))

End Function
 

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

Top