>OK, now I understand. However, if I attempt to put your code in the keypress event for my form class so I dont have to reproduce it on every form I get the message that 'activecontrol' is not an object. Any help here? Thanks...
Calvin,
You didn't include the IF tests, the first one checks to see if the activecontrol is an object, the second makes sure it has a setfocus method.