For various reasons, I\'m stuck in Access 97 and need to get only the path part of a full pathname.
For example, the name
c:\\whatever dir\\another d
You can do something simple like: Left(path, InStrRev(path, "\"))
Left(path, InStrRev(path, "\"))
Example:
Function GetDirectory(path) GetDirectory = Left(path, InStrRev(path, Application.PathSeparator)) End Function