Firstly I am using
Code:Me.Filter = "[SchoolName] Like " & Chr(34) & Me.txtSchoolSearch & "*" & Chr(34)
The problem is if the user puts in a " character in the text box the filter won't work
is there a way to wrap a function around the code or run a function first on the text box which removes the characters we don't want and replaces it with characters less problematic?
this way I could run the check first, then run the rest of the filter unhindered by any ' or "
I'm hoping to make a global function I can call that will check the string for any ' or " and treat the string differently so that it doesn't affect the filter in a bad way...