G
Guest
We have a business database that I developed which has been up and running on
the office server for 6 months or so.
Every weekend I take a copy of the mdb and put this on my notebook and I use
this as the development version, adding bits and making improvements. Then on
Sunday evening I copy the updated version onto the server amnd that becomes
the new live version.
This has been fine until a couple of weeks ago when suddenly after taking a
copy from the server I hit a problem trying to open a record.
On the main form that carries all our job records there is a combo to Find
by Name (customer name). As soon as I used that to select a name from the
dropdown list and then try to open that record (any record) I get a VB error:
"Compile error - Can't find project or library"
The debugger highlights the code behind the combo which is as follows:
Private Sub Combo419_AfterUpdate()
' Find the record that matches the control.
Dim rs As Object
Set rs = Me.Recordset.Clone
rs.FindFirst "[ID] = " & Str(Nz(Me![Combo419], 0))
If Not rs.EOF Then Me.Bookmark = rs.Bookmark
End Sub
Specifically, the highlighting is on the 5th line, on Str
I am absolutely convinced I have not altered anything at all surrounding
this area of the system and I have never had this problem with any previous
version of the mdb after copying onto my notebook, so what's going on ?
Is there any particular way I should be copying the mdb, other than a simple
copy and paste? For example would it make any difference if I used File>Save
As and then specified the local drive location?
And if so why has Copy/Paste worked fine for 6 months and then suddenly
decided it doesn't like me any more?
((
Many thanks
CW
the office server for 6 months or so.
Every weekend I take a copy of the mdb and put this on my notebook and I use
this as the development version, adding bits and making improvements. Then on
Sunday evening I copy the updated version onto the server amnd that becomes
the new live version.
This has been fine until a couple of weeks ago when suddenly after taking a
copy from the server I hit a problem trying to open a record.
On the main form that carries all our job records there is a combo to Find
by Name (customer name). As soon as I used that to select a name from the
dropdown list and then try to open that record (any record) I get a VB error:
"Compile error - Can't find project or library"
The debugger highlights the code behind the combo which is as follows:
Private Sub Combo419_AfterUpdate()
' Find the record that matches the control.
Dim rs As Object
Set rs = Me.Recordset.Clone
rs.FindFirst "[ID] = " & Str(Nz(Me![Combo419], 0))
If Not rs.EOF Then Me.Bookmark = rs.Bookmark
End Sub
Specifically, the highlighting is on the 5th line, on Str
I am absolutely convinced I have not altered anything at all surrounding
this area of the system and I have never had this problem with any previous
version of the mdb after copying onto my notebook, so what's going on ?
Is there any particular way I should be copying the mdb, other than a simple
copy and paste? For example would it make any difference if I used File>Save
As and then specified the local drive location?
And if so why has Copy/Paste worked fine for 6 months and then suddenly
decided it doesn't like me any more?

Many thanks
CW