I have unbound text boxes within a search form
I use
Code:
Me.frmSchoolSearchSub1.Form.Filter = "[NewSchoolsID] Like '*" & Me.txtIDnumber & "*'" & IIf(Not IsNull(Me.cmbState), " and [StateID] =" & Me.cmbState, Null) & " and [SchoolName] Like '*" & Me.txtSchoolS & "*'" & " and [SchoolSuburb] Like '*" & Me.txtSchoolSub & "*'" & "and [SchoolPostCode] Like '*" & Me.txtFilterSchoolPostCode & "*'" & " and [SchoolPhone] Like '*" & Me.txtPhone & "*'" & " and IsNull([Removed])"
however if someone uses ' character say like st paul's then I get an error because I use Like '*" in my code - the ' interferes
How do I get around this?