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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top