spartansFC
Programmer
Hi
I've been trying to sort out this filter by form but can't seem to get it to work the way i want, the search form is one i got from Allenbrowne's website, it works great and the form does filter but it has the wildcard "like" statement in, i need to remove that from the strWhere code so that it only looks at what is selected in the cmbChildStatusSelect.
I've tried just removing the Like ""*" from both sides of the ChildStatusSelect but that creates an error. Can anyone reconfigure the code below so that it just looks at the specific selection in the combo box.
thanks
Mikie
I've been trying to sort out this filter by form but can't seem to get it to work the way i want, the search form is one i got from Allenbrowne's website, it works great and the form does filter but it has the wildcard "like" statement in, i need to remove that from the strWhere code so that it only looks at what is selected in the cmbChildStatusSelect.
I've tried just removing the Like ""*" from both sides of the ChildStatusSelect but that creates an error. Can anyone reconfigure the code below so that it just looks at the specific selection in the combo box.
Code:
strWhere = strWhere & "([ChildStatusDesc] Like ""*" & Me.cmbChildStatusSelect & "*"") AND "
thanks
Mikie