I have placed a combo box on a form that will "look up" and "retrieve" a record from a query. The problem I am having is that when I type a name with an aprostophe, I am recieving: Run-time error '3077':
syntax error (missing operator) in exopression.
When I click "DEBUG" I get this report:
Private Sub Combo415_AfterUpdate()
' Find the record that matches the control.
Dim rs As Object
Set rs = Me.Recordset.Clone
rs.FindFirst "[expr1] = '" & Me![Combo415] & "'"
If Not rs.EOF Then Me.Bookmark = rs.Bookmark
End Sub
Any ideas on how to de-bug this so I can retieve names with the (')?
Thanks for any help you can offer,
Todd
syntax error (missing operator) in exopression.
When I click "DEBUG" I get this report:
Private Sub Combo415_AfterUpdate()
' Find the record that matches the control.
Dim rs As Object
Set rs = Me.Recordset.Clone
rs.FindFirst "[expr1] = '" & Me![Combo415] & "'"
If Not rs.EOF Then Me.Bookmark = rs.Bookmark
End Sub
Any ideas on how to de-bug this so I can retieve names with the (')?
Thanks for any help you can offer,
Todd