belovedcej
Programmer
I have a lookup screen where, after a search, the user can click on a record to be taken to it.
The relevant code on the double-click of the list view is the following:
g_caseID is a global variable used in the findCase routine. The code behind the routine is the following:
the problem - it almost always works. But once in a while, I get an error message saying either BOF or EOF has been reached or the record has been deleted. So then I manually search for the case, and it is there.
This occurs on the users machine, but I cannot duplicate it on mine. It appears to be mostly consistent as to the cases it bombs on, but there is nothing special about the data that I can see, and if it were data related, I would have thought it would bomb on mine, too.
We did check permissions on the SQL side - I have the same exact permissions they do.
A further clue - when on the user's machine, if I sorted the case screen a time or two, then tried this, it worked.
The only things suspicious that I see is that I have set the screen visible twice. But I have a hard time seeing how that would affect anything.
The requery is necessary because this routine is often used after the case or various subforms have been edited.
Any ideas?
The relevant code on the double-click of the list view is the following:
Code:
g_caseID = Me.listCases.Column(0)
Form_frmCases.Visible = True
Call findCase
g_caseID is a global variable used in the findCase routine. The code behind the routine is the following:
Code:
Form_frmCases.Requery
Form_frmCases.Visible = True
'find a case
Dim rs As Recordset
Set rs = Form_frmCases.RecordsetClone
rs.Find "Case_ID = " & g_caseID
Form_frmCases.Bookmark = rs.Bookmark
Set rs = Nothing
the problem - it almost always works. But once in a while, I get an error message saying either BOF or EOF has been reached or the record has been deleted. So then I manually search for the case, and it is there.
This occurs on the users machine, but I cannot duplicate it on mine. It appears to be mostly consistent as to the cases it bombs on, but there is nothing special about the data that I can see, and if it were data related, I would have thought it would bomb on mine, too.
We did check permissions on the SQL side - I have the same exact permissions they do.
A further clue - when on the user's machine, if I sorted the case screen a time or two, then tried this, it worked.
The only things suspicious that I see is that I have set the screen visible twice. But I have a hard time seeing how that would affect anything.
The requery is necessary because this routine is often used after the case or various subforms have been edited.
Any ideas?