MichaelPReid
Technical User
I am developing a query by form to search through multiple fields of a datasheet, but am running into a snag. I would like to have one parameter, [Forms]![QBF_Form]![RepName], from the form be used to search through two similar fields, ByLine1 and ByLine2, in the query.
When I set "Like "*" & [Forms]![QBF_Form]![RepName] & "*" OR [Forms]![QBF_Form]![RepName] is NULL" as the criteria field for ByLine1, the query runs perfectly. But when I add the same command into the criteria field for ByLine2, the result is a query with no records. ByLine1 and ByLine2 are text fields drawn from the same list of names and the form field is a combo box based on that list.
What am I missing? Thank you
When I set "Like "*" & [Forms]![QBF_Form]![RepName] & "*" OR [Forms]![QBF_Form]![RepName] is NULL" as the criteria field for ByLine1, the query runs perfectly. But when I add the same command into the criteria field for ByLine2, the result is a query with no records. ByLine1 and ByLine2 are text fields drawn from the same list of names and the form field is a combo box based on that list.
What am I missing? Thank you