M
maryanne
We are trying to move an access 97 db to the new computer
we just purchased (the only Office program on the new
computer is Access 97). The db is no longer supported by
the agency we got it from.
The db works fine on the old computer, but when we try to
open it on the new one, we get a compile error - can't
find project or library" I've copied the registration db
along with this db and set the paths to be the same on the
new computer, but I'm still getting this error.
The code is highlighted within a function to register the
db called Function CheckReg().The highlighting is at the
line that says "rst databasename = right$" as in:
Else
On Error GoTo exit_link
Dim rst As Recordset
Set rst = CurrentDb.OpenRecordset("tblregistration")
If rst.recordcount > 0 Then
If Not IsNull(rst!SiteReg) Then
DoCmd.Close acForm, "pleasewait"
On Error GoTo exit_link3
rst.Edit
rst!DatabaseName = right$(CurrentDb.NAME, Len
(CurrentDb.NAME) - ap_LastInStr(CurrentDb.NAME, "\"))
rst!DatabasePath = left$(CurrentDb.NAME, Len
(CurrentDb.NAME) - Len(rst!DatabaseName))
rst.update
Call CompileCode
Application.Echo True, "Welcome to OSHMAP...."
DoCmd.Hourglass False
Exit Function
End If
we just purchased (the only Office program on the new
computer is Access 97). The db is no longer supported by
the agency we got it from.
The db works fine on the old computer, but when we try to
open it on the new one, we get a compile error - can't
find project or library" I've copied the registration db
along with this db and set the paths to be the same on the
new computer, but I'm still getting this error.
The code is highlighted within a function to register the
db called Function CheckReg().The highlighting is at the
line that says "rst databasename = right$" as in:
Else
On Error GoTo exit_link
Dim rst As Recordset
Set rst = CurrentDb.OpenRecordset("tblregistration")
If rst.recordcount > 0 Then
If Not IsNull(rst!SiteReg) Then
DoCmd.Close acForm, "pleasewait"
On Error GoTo exit_link3
rst.Edit
rst!DatabaseName = right$(CurrentDb.NAME, Len
(CurrentDb.NAME) - ap_LastInStr(CurrentDb.NAME, "\"))
rst!DatabasePath = left$(CurrentDb.NAME, Len
(CurrentDb.NAME) - Len(rst!DatabaseName))
rst.update
Call CompileCode
Application.Echo True, "Welcome to OSHMAP...."
DoCmd.Hourglass False
Exit Function
End If