I'm trying to write a query that will generate a field from a table where the value in field "CName" contains either "Bills" or "Bill's", but I'm getting wacky results, for instance: records where neither "Bill", "Bills", "Bill's", nor any other value containing a single quote is contained in the field in question. I've narrowed the query down through enough trial and error to know that it is this value of "Bill's" that is causing the problem. But I don't know what syntax the query is looking for to identifty those records, nor how this syntax error could be resulting in some of the records I'm seeing.
Here's the query code for this field:
Customer_NEWEST: IIf([tbl_CUSTOMER_AD_HOC_REPORT]![CName] Like "*Bill's*" Or "*Bills*","BILLS","OTHER")
Please advise. Thank you
- Deek