Thanks LB for the suggestion. It's not really working though. {a.CatPartMarketCode} could have any combination of 2 digit character codes, separated by commas such as
[ME,CN,GB] or [CN] or [CZ,ME,CN]
Similarly, the parameter array will have any code, any order.
I was thinking about making it...