OK, try the code that I changed, I was using my SQL instead of your strSQL