Hello flowersr,
CurrentDb.Name will return the entire path of your current db. Given the fact you know the name of the current db you could pars out or replace the current db name with blanks and keep the application path.
i.e. (pardon the crudeness here)
Knowing that my current database is called db8.mdb then
Private Sub Command0_Click()
Dim stPath As String
stPath = CurrentDb.Name
stPath = Replace(stPath, "db8.mdb", "")
MsgBox stPath
End Sub
YOu should get a msgbox that has the path including the last backslash and then append your new db name.
Andy Baldwin
"Testing is the most overlooked programming language on the books!