Hi,
I have been looking around for a while now trying to figure this out. Would really appreciate some assistance. I have a form with some combos to allow the user to pass filter criteria to a query. When one combo is left empty I want this criteria to be disregarded in the filtering - meaning all values (and null) should be included. I handle this through some code where I use the following approach; "If nz(FilterCombo; "") <> "" then FilterCombo Else "*" (please consider this is conceptual code only). I add the outcome to a public parameter and in the query I use "Like Get_FilterParameter()". This works great with one exception. The wildcard filters out all Null values.
If I add "Or Is Null" directly in the query filter criteria I will always include the Null values even if the user actively selected a criteria so that doesn't do it either.
Can I pass a different criteria (instead of my wildcard) that will do this for me?
Any directions would be very appreciated!
Thanks!
I have been looking around for a while now trying to figure this out. Would really appreciate some assistance. I have a form with some combos to allow the user to pass filter criteria to a query. When one combo is left empty I want this criteria to be disregarded in the filtering - meaning all values (and null) should be included. I handle this through some code where I use the following approach; "If nz(FilterCombo; "") <> "" then FilterCombo Else "*" (please consider this is conceptual code only). I add the outcome to a public parameter and in the query I use "Like Get_FilterParameter()". This works great with one exception. The wildcard filters out all Null values.
If I add "Or Is Null" directly in the query filter criteria I will always include the Null values even if the user actively selected a criteria so that doesn't do it either.
Can I pass a different criteria (instead of my wildcard) that will do this for me?
Any directions would be very appreciated!
Thanks!