>Actually, this code could be greatly simplified by setting the Cancel property on your cancel command button. You only need to then check for LASTKEY()=27. You should still be able to use your ALT+C shortcut for your cancel button.
Yes, this would work. I don't remember the reason right now why we didn't want to make Cancel button be 'Cancel' <g>
If it's not broken, fix it until it is.
My Blog