Here is my code for Parameters that will allow a one or all type search with the (one) being a wildcard search.
I am using Crystal Reports 9 - When I use this with the WildCard "*" surrounding the parameter I get no results. If I remove the "*" and enter exact match to field data or ALL I do get results.When I enter "*" in the Param Dialog box I get no results.
This suggestion for coding came from the Crystal Decisions Forum site. I also based the coding on TekTips thread 149-813765 which was very helpful.
Am I doing something wrong?
Maybe there is another way?
Code:
('*'+{?Name}+'*' LIKE {@Name} OR {?Name} = "ALL") AND
('*'+{?Insureds}+'*' LIKE {@ssn} OR {?Insureds} = "ALL")
I am using Crystal Reports 9 - When I use this with the WildCard "*" surrounding the parameter I get no results. If I remove the "*" and enter exact match to field data or ALL I do get results.When I enter "*" in the Param Dialog box I get no results.
This suggestion for coding came from the Crystal Decisions Forum site. I also based the coding on TekTips thread 149-813765 which was very helpful.
Am I doing something wrong?
Maybe there is another way?