P
Pieter Wijnen
Quite simple
Function AppPath() As string
' will not work if dir contains db name ie C:\db1.mdb\db1.mdb
Dim Db AS DAO.Database
Set Db = Access.CurrentDb
AppPath = Db.Name
AppPath = Left(AppPath,Instr(AppPath,Dir(AppPath))-2)
Set db = nothing
End Function
HTH
Pieter
Function AppPath() As string
' will not work if dir contains db name ie C:\db1.mdb\db1.mdb
Dim Db AS DAO.Database
Set Db = Access.CurrentDb
AppPath = Db.Name
AppPath = Left(AppPath,Instr(AppPath,Dir(AppPath))-2)
Set db = nothing
End Function
HTH
Pieter