Article ID: 113919
Article Last Modified on 1/18/2007
Option Compare Databases
Option Explicit
Function GetNamePath ()
Dim MyDB As Database
' Set MyDB to the current database.
Set MyDB = CurrentDB()
' Return the value in the Name property.
GetNamePath = MyDB.Name
End Function
? GetNamePath()
Option Explicit
Function GetNamePath ()
Dim MyDB As Database
' Set MyDB to the current database.
Set MyDB = DBEngine.Workspaces(0).Databases(0)
' Return the value in the Name property.
GetNamePath = MyDB.Name
End Function
? GetNamePath()
Additional query words: programming directory
Keywords: kbhowto kbprogramming KB113919