How to get the path of our program

  • Thread starter Thread starter Mota
  • Start date Start date
M

Mota

Hello;
How to know the path,where my program (in its Run-Time version) is installed
by the user?
Thank you.
 
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
 
Its a mdb file,but using Packaging Wizard converted to a run-time access
file.Does CurrentDB.Name returns fullPath of mdb files too?
Thank you so much for ur help.
 
Yes, it should work just fine. I used it in mde, and mdb files. The runtime
should also be ok...
 
Back
Top