HI all, I am using this code to open another database from within the current database -- this action happens in response to a user click -- However, every time I run the code it says "file not found." the file is infact in the same directory as the calling database...
Is this code correct?
Hj
_______________________________________________
Public Sub openDB()
Dim wrkJet As Workspace
Dim dbLabels As Database
' Create Microsoft Jet Workspace object.
Set wrkJet = CreateWorkspace("", "admin", "", dbUseJet)
' Open Database object from saved Microsoft Jet database
MsgBox "Opening Interface...", vbInformation
Set dbLabels = wrkJet.OpenDatabase("Labels.mdb"
End Sub