Your right DataMiser, and I did find it, but the examples I found all had errors of one kind or another.

On the other hand your answer worked perfectly, thank you very much, I can now proceed with my little program.