front end: Access XP
backend: Oracle 8i
Question: Using running a query which has a criteria that is populated by a textbox from a form.
this is the easy part.
My confusion is when a user enters a wildcard "*"
the query looks somewhat like this
Like form![field]
so if they enter a wild card the query will still work.
my problem is that Like * will not validate null values. So how do I add a check for this....
i wrote this
Like iif(form![field]="*", "*" or Is null, form![field])
but when I went to check out the sql it looks like this
Like iif(form![field]="*", form![field]like "*" or form![field] is null, form![field])
can anybody tell me whats wrong (unless it is correct)
tc3of4
backend: Oracle 8i
Question: Using running a query which has a criteria that is populated by a textbox from a form.
this is the easy part.
My confusion is when a user enters a wildcard "*"
the query looks somewhat like this
Like form![field]
so if they enter a wild card the query will still work.
my problem is that Like * will not validate null values. So how do I add a check for this....
i wrote this
Like iif(form![field]="*", "*" or Is null, form![field])
but when I went to check out the sql it looks like this
Like iif(form![field]="*", form![field]like "*" or form![field] is null, form![field])
can anybody tell me whats wrong (unless it is correct)
tc3of4