Ok, it might be as Fox suggested! I am using VB5 and he wrot it with VB6 as far as I could understand it.
So I'll try his code later on cause I have to do a lot for the school!!!
Thanks Neon