name of app

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!!
 
A

Alex Dybenko

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

or

CurrentProject.Name
 
J

Joerg Ackermann

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
 

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