Sorry i have they selution. I had make an mistake in the select command.
And about the UDF's i didn't thought of it.

Thanks for your help.

Thijs