I have a main window and a couple support windows. When one of the support windows is opened it has the option to insert a new record and I was attempting to do this using a sheet window so the user can enter the data. When I close the sheet window pressing the Cancel button everything works fine, when I press the Escape key the app crashes immediately. I really can´t figure this one out. There is no code in the Cancel button other than a Self.Close, funny thing is that the code works perfectly but the Escape key triggers an app crash.

I tried changing the sheet window to a docuement window for testing purposes and the app still crashes when the Esc key is pressed.

Thanks for any suggestions.

Edit: Now any key press triggers the crash, no change in code whatsoever. Getting worst, now any keypress in any of the support forms triggers the crash. This is getting weirder by the minute.