[AccessD] Cancel Delete Key Only For Records (Correction)

Doug Steele dbdoug at gmail.com
Sun Apr 27 09:01:45 CDT 2008


You could:
1. Set the 'Allow deletions' property of the form to False.
2. Set the Cancel parameter in the BeforeDeleteConfirm event to 'True'.
Check out the 'Delete' event help for more info

Doug Steele

On Sat, Apr 26, 2008 at 10:12 AM, Dan Waters <dwaters at usinternet.com> wrote:

>
>
> -----Original Message-----
> From: Dan Waters [mailto:dwaters at usinternet.com]
> Sent: Saturday, April 26, 2008 12:09 PM
> To: 'Access Developers discussion and problem solving'
> Subject: Cancel Delete Key Only For Records
>
> I would like to cancel the keyboard's Delete key action, but only for
> whole
> records.  How can that be done?
>
> This completely cancels any action by the Delete key:
>
>        If KeyCode = vbKeyDelete then
>                KeyCode = 0
>        End If
>
> Thanks!
> Dan
>
>
>
>
> --
> AccessD mailing list
> AccessD at databaseadvisors.com
> http://databaseadvisors.com/mailman/listinfo/accessd
> Website: http://www.databaseadvisors.com
>



More information about the AccessD mailing list