Hi. I'm using some Visual Basic code in Access, and I want to use code to simulate the same effect as the user pressing the Esc key. Maybe I should post this in the access section, but as I say, it's VB code.
When I start to edit a record on a form, and then change my mind, I have to hit ESC to cancel the half entered record. I simply want to be able to have the code execute this without the user pressing the key.
I know the KeyAscii for ESC is 27. Can I somehow use this to tell the computer to "Press Key 27?"
Thanks for any help.