J
JimS
I'm accepting search criteria from text boxes, so it'll set the filter to
something like
Me.Filter="Description like '*" & tbDesc & "*'"
Seems to work if tbDesc contains double quotes, but blows up if tbDesc
contains single quotes...
Can I use:
Me.Filter="Description like '*" & replace(tbDesc,"'","''") & "*'"
and have it work when the user enters single quotes?
something like
Me.Filter="Description like '*" & tbDesc & "*'"
Seems to work if tbDesc contains double quotes, but blows up if tbDesc
contains single quotes...
Can I use:
Me.Filter="Description like '*" & replace(tbDesc,"'","''") & "*'"
and have it work when the user enters single quotes?