>I used code these codes on keypress of form but it says
>
>
>ON KEY LABEL CTRL+D Thisform.Delete_Record()
>
>
>THISFORM can only be used within a method.
This is not what I suggested. I know it's not going to work, you need to use Form's KeyPress method instead
If it's not broken, fix it until it is.
My Blog