That doesn't do anything if you manually open a query window. It will only trigger if someone queries you.

BTW, I had already used that for the first bit of code I gave him. wink