I'm using Access 2003.
I'd like to override the default behaviour for deleting records in a form.
Specifically, I want to build my own custom delete procedure so that when the user presses the Del button, my code fires to complete the deletion of the selected record(s). In order to do that, I'd set Allow Deletions = No for that form. I'd also want to code the KeyDown event for the Del key so that if record(s) are selected, my custom delete code fires, else the default behavior for the Del key happens.
Is this possible? I'm primarily interested in how I might code the KeyDown event.
Thanks.
Wayne
I'd like to override the default behaviour for deleting records in a form.
Specifically, I want to build my own custom delete procedure so that when the user presses the Del button, my code fires to complete the deletion of the selected record(s). In order to do that, I'd set Allow Deletions = No for that form. I'd also want to code the KeyDown event for the Del key so that if record(s) are selected, my custom delete code fires, else the default behavior for the Del key happens.
Is this possible? I'm primarily interested in how I might code the KeyDown event.
Thanks.
Wayne