>I get the error "Command contains unrecognized phrase/keyword.
>
>Thanks for your help.
Then the Naomi's answer is the decision.
There is no INLIST() function in SQL Server.
Always check what SQL*() functions returns.
that will give you the exact information what is the problem.
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.