G
Guest
I am trying to move between records with the following code (in the AFTERT
Update event of a listbox):
Set rstMe = Me.RecordsetClone
rstMe.FindFirst "[Pupil ID] = " & Me!LstReqdPupil.ItemData(0)
If rstMe.NoMatch Then
MsgBox "Pupil ID not found when changing year group"
Else
Me.Bookmark = rstMe.Bookmark
End If
This raises the run-time error 2115 when it reaches the line 'Me.Bookmark =
rstMe.Bookmark'.
I am selecting from a listbox (LstReqdPupil) which is not linked to the
underlying data, this occurs even when no other controls change any data, and
when the are no 'before update' events used anywhere in the project.
Any suggestions where I should look for the problem?
Thanks.
Update event of a listbox):
Set rstMe = Me.RecordsetClone
rstMe.FindFirst "[Pupil ID] = " & Me!LstReqdPupil.ItemData(0)
If rstMe.NoMatch Then
MsgBox "Pupil ID not found when changing year group"
Else
Me.Bookmark = rstMe.Bookmark
End If
This raises the run-time error 2115 when it reaches the line 'Me.Bookmark =
rstMe.Bookmark'.
I am selecting from a listbox (LstReqdPupil) which is not linked to the
underlying data, this occurs even when no other controls change any data, and
when the are no 'before update' events used anywhere in the project.
Any suggestions where I should look for the problem?
Thanks.