You pasted to the wrong event. Change it to Form_Load event.

Regards,

------------------

Serge

Software Developer
[email protected]
[email protected]
ICQ#: 51055819