J
jijohansson
Guest
I'm using Access 97 and I would like to find the path to the currently open database with code like:
Dim currDb As Database
Dim path As String
Set currDb = CurrentDb
path = CurrentDb.Name
This used to give me the full path but my computer crashed and since the recovery I get the path with directories shortened to the Dos 8 character format:
E:\SOFTWA~1\DATABA~1\My Fancy Db.mdb
The database name is always the full length though. Is it possible for me to force the retrieval of the full path name (ie with full length directories) from VBA, or is this something that needs to be set in the operating system?
Thank you,
Jon.
Dim currDb As Database
Dim path As String
Set currDb = CurrentDb
path = CurrentDb.Name
This used to give me the full path but my computer crashed and since the recovery I get the path with directories shortened to the Dos 8 character format:
E:\SOFTWA~1\DATABA~1\My Fancy Db.mdb
The database name is always the full length though. Is it possible for me to force the retrieval of the full path name (ie with full length directories) from VBA, or is this something that needs to be set in the operating system?
Thank you,
Jon.