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
 
If I use
CurrentDb.Name I get the entire path and I would like just the name of
the app without the path.

Debug.Print Dir(CurrentDB.Name)


HTH


Tim F
 
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

Back
Top