Delete Command Button

  • Thread starter Thread starter Marilyn Nathan
  • Start date Start date
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.
 
DoCmd.SetWarnings False
DoCmd.RunCommand acCmdDeleteRecord
DoCmd.SetWarnings True

Will delete the current record.
 
Back
Top