You Cancelled the previous operation in bookmark function when using split form in Access 2007
Posted on 2008-09-30
I would like to turn my single record form with a combo box lookup into a split form but I am having trouble. If I run the form as a single form all works well including my combo box lookup. However when I set the form to split form I get a message that says "you cancelled the previous operation" and the cursor highlights the line "Me.Bookmark = rs.Bookmark" when I debug. I am using the following code. Can anyone suggest why it works in single user and not in split user format?
Private Sub cboFindNurse_AfterUpdate()
' Find the record that matches the control.
Dim rs As DAO.Recordset
Set rs = Me.Recordset.Clone
rs.FindFirst "[NurseID] = " & Str(Nz(Me![cboFindNurse], 0))
If Not rs.NoMatch Then Me.Bookmark = rs.Bookmark
If Not rs Is Nothing Then
Set rs = Nothing