Tahnx for reply,

yes I have an Inet1 on the form, but even then it seems to work only sometimes. This code was the only one I was able to find anywhere.