You haven't really stated which VB you are using, VB6 or VB.Net. This is a VB question so you will get a better response posted in the correct forum, its not really a Member Chat.