Let's say I have textbox [text] and field [Table].[1]
When [text] is null I want the criteria to Like "*" or is null
When [text has a value I want it to be Like "*" & [Forms]![FormName]![text] & "*"
I came up with
IIF( [Forms]![FormName]![text] = Null, [Table].[1] = Like "*" or is null, [Table].[1] = Like "*" & [Forms]![FormName]![text] & "*")
I put this into the criteria (WHERE) and it didn't work, I got no records from the query.
Eventually I want to do the same operation on many fields, though trying it out on just one it doesn't work.
Would I have to put it in as a field (in SELECT), but then doesn't that syntax have to be different?
I feel super silly right now but I'm stumped,
Thanks!