Post your code. I have the code in a button. If you have it in form load, that may throw things off. We need to see what you have tried.