Sheila:
To enter code in the Delete event procedure select the form in form design
view by clicking on the small grey square at its top left corner and open its
properties sheet if its not already open. Then select the On Delete event
property in the properties sheet. Click on the 'build' button; that's the
one on the right with 3 dots. Select 'Code Builder' in the dialogue, and
click OK. The VBA window will open at the event procedure with the first and
last lines already in place. Enter the lines of code between these two
existing lines.
Do the same for the Before Del Confirm event property, entering the single
line of code there.
BTW its better to stay in the original thread when seeking clarification of
a point rather than starting a new thread. I'd have been notified of your
latest message that way, whereas I could have easily missed it in this thread
( I don't read every one!)
Ken Sheridan
Stafford, England