I have a combo box on a form that finds records in a table or query. It's a lastname, firstname lookup. It works fine except for people with an apostrophe in their name - i.e. O'Malley, George. It gives me a 3077 runtime error (Missing operator in expression). The code looks like:
Help in solving my problem is greatly appreciated.
Jack
Code:
Dim rs As Object
Set rs = Me.Recordset.Clone
rs.FindFirst "[lfname] = '" & Me![Combo15] & "'"
Me.Bookmark = rs.Bookmark
Me.Combo15 = lfname
DoCmd.DoMenuItem acFormBar, acRecordsMenu, acSaveRecord, ,acMenuVer70
Me.Combo15.Requery
Me.Combo15 = Null
Help in solving my problem is greatly appreciated.
Jack