You can do that directly in your Vb code itself.

Here is the link..

http://support.microsoft.com/default.aspx?scid=kb;EN-US;q176085

Regards,
kiran.