Hi,
I have a form that has been working fine until a searched for a title with an apostrophe. The form gave an error. How to avoid that. Suppose I am looking for Penguin's Medical Dictionary . This is the filter code I am using which is working fine for titles without apostrophe.
Set rs = Me.Recordset.Clone
rs.FindFirst "[Title] = '" & Me![Combo64] & "'"
If Not rs.EOF Then Me.Bookmark = rs.Bookmark
Me.Qty.SetFocus
Thank you
Pauling
I have a form that has been working fine until a searched for a title with an apostrophe. The form gave an error. How to avoid that. Suppose I am looking for Penguin's Medical Dictionary . This is the filter code I am using which is working fine for titles without apostrophe.
Set rs = Me.Recordset.Clone
rs.FindFirst "[Title] = '" & Me![Combo64] & "'"
If Not rs.EOF Then Me.Bookmark = rs.Bookmark
Me.Qty.SetFocus
Thank you
Pauling