name of app

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

Guest

Is there a way to read the name of the .mdb application? If I use
CurrentDb.Name I get the entire path and I would like just the name of the
app without the path.

Thanks!!
 
You can use either:
mid(currentdb.name,InStrRev(currentdb.name,"\")+1)

or

CurrentProject.Name
 
smk23 said:
Is there a way to read the name of the .mdb application? If I use
CurrentDb.Name I get the entire path and I would like just the name
of the app without the path.

SysCmd(acSysCmdAccessDir)

Acki
 
Back
Top