I have a form for searching with unbound text fields. There is a subform that gets its data from a query. What I have now works for searching for the first letter in each field. I have made queries in the past using Like "*"+[control]+"*" but cannot figure out how to translate this into VBA with the code I am using now.
If Me.txtcustname > "" Then
varWhere = varWhere & "[name] LIKE """ & Me.txtcustname & "*"" AND "
End If
I need to do something with the red portion but cannot figure out what. Any help would be greatly appreciated.
Thanks