My dataset query selects values using a LIKE statement:
WHERE unitcode LIKE 'A2%'
So this returns A200, A201, A202, etc.
My report replaces this with a parameter:
WHERE unitcode LIKE @code
where @code can be 'A2%' or 'B2%', selectable via dropdown, to show a report featuring either A2 codes or B2 codes.
Now I want to add a third option that selects both A2 and B2 codes. Is this possible? The way LIKE works seems to prevent me from tying multiple LIKEs up in a single parameter, and I've tried doing WHERE @code with @code being
unitcode LIKE 'A2%' OR unitcode LIKE 'B2%' but this causes an error.
unitcode LIKE 'A2%' OR unitcode LIKE 'B2%'- Tab Alleman