mytaurus2000
Technical User
I have the following code:
Private Sub QuickFind_AfterUpdate()
' Find the record that matches the control.
Dim rs As Object
Set rs = Me.Recordset.Clone
rs.FindFirst "[SortName] = '" & Me![QuickFind] & "'"
If Not rs.EOF Then Me.Bookmark = rs.Bookmark
Me!QuickFind.Value = ""
End Sub
But when I search with a customer name of O'Brien, I receive an error stating Syntax error (missing operator) in expression.
What does this mean and how do I fix it?
Private Sub QuickFind_AfterUpdate()
' Find the record that matches the control.
Dim rs As Object
Set rs = Me.Recordset.Clone
rs.FindFirst "[SortName] = '" & Me![QuickFind] & "'"
If Not rs.EOF Then Me.Bookmark = rs.Bookmark
Me!QuickFind.Value = ""
End Sub
But when I search with a customer name of O'Brien, I receive an error stating Syntax error (missing operator) in expression.
What does this mean and how do I fix it?