G
Guest
anybody know what i am doing wrong with the code below? It doesnt recognize
the apostrophe. If i was to do a search on the title "Joe's Garage", it'll
give me the first match, but the next match it will give me an EOF.
Sub NavByType(Direction)
Dim R As Recordset
Set R = Me.RecordsetClone
R.Bookmark = Me.Bookmark
If Direction = "B" Then
R.FindPrevious "[Title] = '" & Me![TITLE] & "'"
Else
R.FindNext "[TITLE] = '" & Me![TITLE] & "'"
End If
If R.NoMatch Then
MsgBox "No More Matches"
Else
Me.Bookmark = R.Bookmark
End If
End Sub
the apostrophe. If i was to do a search on the title "Joe's Garage", it'll
give me the first match, but the next match it will give me an EOF.
Sub NavByType(Direction)
Dim R As Recordset
Set R = Me.RecordsetClone
R.Bookmark = Me.Bookmark
If Direction = "B" Then
R.FindPrevious "[Title] = '" & Me![TITLE] & "'"
Else
R.FindNext "[TITLE] = '" & Me![TITLE] & "'"
End If
If R.NoMatch Then
MsgBox "No More Matches"
Else
Me.Bookmark = R.Bookmark
End If
End Sub