If you do not use the Like, then the only records with the * will be returned... probably nothing.
The only problem with the Like is, it will query the db when it doesn't really need to when the wildcard * is used.
i.e. the sql send to the db will be something like
... and {Item.ITM_CODE} Like '*' and ...
This is not really need if the db isn't large.
You can do this for a more optimized solution
(if {?artCodeSelection} = '*' then true
else
{Item.ITM_CODE}={?artCodeSelection}
)
The sql Generated when a * is used will be
... and true and ...
The sql Generated when a * is Not used will be
... and {Item.ITM_CODE} Like '*' and ...
Generally I normally use Like because its easy, but on the really slow reports, then I will optimize the code.
Fred