I have a form. The users click on a button called lock doc to open the document. This creates a lock by putting the users name in a field. When the users click on Save and Close button the lock field is erased. However when users click on Esc key the lock is not getting erased.I know I could have erased the lock value from Query close, but there is a SaveOptions field with value of 0 and it gets set to 1 only when Save$Close button is clicked. That is why when the users hit Esc key the lock is not getting erased because the SaveOptions field is 0 at that time. I was thinking of using onkeypress to see if Esc key was pressed. Is it possible?
Thanks,