I have a function that is trying to filter an ADO recordset. It works just fine until I try to filter the recordset on a value that contains an apostrophe. Is there anyway of getting around this? The code I am using looks like the following:
adoCloneRS.Filter = "descr = '" & Trim(Me.txtCls.Text) & "'"
This works great until the value I am trying to filter on contains an apostrophe. Any suggestions? Thanks in advance.
adoCloneRS.Filter = "descr = '" & Trim(Me.txtCls.Text) & "'"
This works great until the value I am trying to filter on contains an apostrophe. Any suggestions? Thanks in advance.