I have read many post concerning using a wildcard "*" in a parameter search, but haven't found anything that pertains directly to my question.If anyone can help; I would greatly apprecitate it.
I have several search parameters set up in my report. The section where I want to use my wildcard is in the notes field. For example:
I may be looking for a black car, but everyone doesn't enter their notes the same. Some people may put "blk car" and some people may put "black car". Instead of having to search both ways, I would like to be able to enter something like "bl* car" in my search field, so that it will pull back results that would pertain to both entry methods. It may also pull back blue car (which is okay) for my type searches.
Does anyone know how I would formulate this to work properly. The search formula below is what I am currently using (which works fine- with the exception of wild cards).
IF (INSTR (UPPERCASE({@NOTES}), UPPERCASE({?SEARCH1}))>0) AND (INSTR (UPPERCASE({@NOTES}), UPPERCASE({?SEARCH2}))>0) THEN TRUE ELSE IF
(INSTR (UPPERCASE({@NOTES}), UPPERCASE({?SEARCH3}))>0) AND (INSTR (UPPERCASE({@NOTES}), UPPERCASE({?SEARCH4}))>0) THEN TRUE ELSE IF
(INSTR (UPPERCASE({@NOTES}), UPPERCASE({?SEARCH5}))>0) AND (INSTR (UPPERCASE({@NOTES}), UPPERCASE({?SEARCH6}))>0) THEN TRUE ELSE IF
(INSTR (UPPERCASE({@NOTES}), UPPERCASE({?SEARCH7}))>0) AND (INSTR (UPPERCASE({@NOTES}), UPPERCASE({?SEARCH8}))>0) THEN TRUE ELSE IF
(INSTR (UPPERCASE({@NOTES}), UPPERCASE({?SEARCH9}))>0) AND (INSTR (UPPERCASE({@NOTES}), UPPERCASE({?SEARCH10}))>0) THEN TRUE ELSE FALSE
I have several search parameters set up in my report. The section where I want to use my wildcard is in the notes field. For example:
I may be looking for a black car, but everyone doesn't enter their notes the same. Some people may put "blk car" and some people may put "black car". Instead of having to search both ways, I would like to be able to enter something like "bl* car" in my search field, so that it will pull back results that would pertain to both entry methods. It may also pull back blue car (which is okay) for my type searches.
Does anyone know how I would formulate this to work properly. The search formula below is what I am currently using (which works fine- with the exception of wild cards).
IF (INSTR (UPPERCASE({@NOTES}), UPPERCASE({?SEARCH1}))>0) AND (INSTR (UPPERCASE({@NOTES}), UPPERCASE({?SEARCH2}))>0) THEN TRUE ELSE IF
(INSTR (UPPERCASE({@NOTES}), UPPERCASE({?SEARCH3}))>0) AND (INSTR (UPPERCASE({@NOTES}), UPPERCASE({?SEARCH4}))>0) THEN TRUE ELSE IF
(INSTR (UPPERCASE({@NOTES}), UPPERCASE({?SEARCH5}))>0) AND (INSTR (UPPERCASE({@NOTES}), UPPERCASE({?SEARCH6}))>0) THEN TRUE ELSE IF
(INSTR (UPPERCASE({@NOTES}), UPPERCASE({?SEARCH7}))>0) AND (INSTR (UPPERCASE({@NOTES}), UPPERCASE({?SEARCH8}))>0) THEN TRUE ELSE IF
(INSTR (UPPERCASE({@NOTES}), UPPERCASE({?SEARCH9}))>0) AND (INSTR (UPPERCASE({@NOTES}), UPPERCASE({?SEARCH10}))>0) THEN TRUE ELSE FALSE