N
Nika
I am having problems with my combo box search option. It won’t search the
last names with apostrophe s, for example: O`Neal.
I get an error. The box popped up: Microsoft Visual Basic; Run-Time Error
“3077â€; Syntax Error (missing operator) After clicking debug, I got the
following (with highlighted rs.FindFirst "[LAST NAME] = '" & Me![Combo384]
& "'")
Private Sub Combo384_AfterUpdate()
' Find the record that matches the control.
Dim rs As Object
Set rs = Me.Recordset.Clone
rs.FindFirst "[LAST NAME] = '" & Me![Combo384] & "'"
If Not rs.EOF Then Me.Bookmark = rs.Bookmark
End Sub
Just to mention, I have a query with all last names listed. When I search
the last name, I spell the last name exactly as it is spelled in my query.
And I have no problems searching other last names.
Can somebody help me to clear this error?
Thanks.
last names with apostrophe s, for example: O`Neal.
I get an error. The box popped up: Microsoft Visual Basic; Run-Time Error
“3077â€; Syntax Error (missing operator) After clicking debug, I got the
following (with highlighted rs.FindFirst "[LAST NAME] = '" & Me![Combo384]
& "'")
Private Sub Combo384_AfterUpdate()
' Find the record that matches the control.
Dim rs As Object
Set rs = Me.Recordset.Clone
rs.FindFirst "[LAST NAME] = '" & Me![Combo384] & "'"
If Not rs.EOF Then Me.Bookmark = rs.Bookmark
End Sub
Just to mention, I have a query with all last names listed. When I search
the last name, I spell the last name exactly as it is spelled in my query.
And I have no problems searching other last names.
Can somebody help me to clear this error?
Thanks.