thanks... this seems to work.. just hope it is as easy as in vb.net because i've decided to use vb.net instead of vb6 for my database application.