I recommend dumping this code into a module and stepping through it. This will help you understand what the code is doing. Just use "F8" to step through the code. What you can do is simply use the replace function on strFullPath....
Code:
Replace(strFullPath, ".mdb", "")
I have not stepped through this code, but what it looks like it is doing is removing all the "\" from the string in strFullPath. If your desired outcome is simply to have the path less the ".mdb" extension I would suggest the following...
Code:
Public Function GetDBPath() As String
Dim strFullPath As String
strFullPath = Mid(DBEngine.Workspaces(0).Databases(0).TableDefs("tbl_Contacts").Connect, 11)
GetDBPath = Replace(strFullPath, ".mdb", "")
End Function