I had this old ACCESS 97 mdb thrown at me and I want to do with it is look at the reports and extract the queries. When I open the mdb I get this message about invalid reference. It is in regards to this element called GSELib.mde. This mde is sitting in the same folder as the mdb. I know almost nothing about MS Access. How do I resolve this invalid reference? I am using MS Access 2007 and I told it not to convert the database.
Public Function UserSetReferences()
Dim ref As Reference, thispath, LibName As String, FoundLib As Boolean
On Error GoTo ErrorProcessing
thispath = CurrentDb.name
i = 0
Do Until trash = "\"
i = i + 1
filepath = Left(thispath, Len(thispath) - i)
trash = Right$(filepath, 1)
PathCrntMDB = filepath
Set ref = References.AddFromFile(filepath & "GSELib.mde")
If Err.Number = 32813 Then Resume Next