Hi km198,

thanks for your solution.

In the meantime my program is finished in another way, but in the future I'll try to use dynamic sql.