>Wow... if you can understand this stuff without using the forms or objects...!
>-----------------
I just try something (your code with some comments) and I don't have any problem!
Try to put most of the code in comments and add your lines gradually until you find what is causing the error.
Which SP (for VB) are you using?
Éric Moreau, MCPD, Visual Developer - Visual Basic MVP
Conseiller Principal / Senior Consultant
Moer inc.
http://www.emoreau.com