Delete Command Button

M

Marilyn Nathan

I want to allow deletion only through clicking a command
button. How should I do this? Also how do I suppress the
messages generated from the events that are triggered.

Thank you.
 
P

PC Datasheet

DoCmd.SetWarnings False
DoCmd.RunCommand acCmdDeleteRecord
DoCmd.SetWarnings True

Will delete the current record.
 
Top