Filename of the current application

R

Ron

Hello,
For a Word mailmerge function in an Access application I
need the filename and directory name of the current Access
application, because the mailmerge is within that same
Access application.
I think this is simple, but could not find it,
please help . . .
Ron
 
A

Allen Browne

The full name and path are in:
CurrentDb().Name

The path is:
Left(dbEngine(0)(0).Name, InstrRev(dbEngine(0)(0).Name, "\")-1)
 

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