Delete and Close Button

sbuckingham25

Registered User.
Local time
Today, 11:33
Joined
Jun 12, 2008
Messages
27
I thought I would post this separately...

I would like a button on my form once clicked to delete the record then exit the form. How can I do that?"

Thanks again!
 
Code:
Private Sub DeleteClose_Click()
 DoCmd.SetWarnings False
 DoCmd.RunCommand acCmdSelectRecord
 DoCmd.RunCommand acCmdDelete
 DoCmd.Close
 DoCmd.SetWarnings True
End Sub
 

Users who are viewing this thread

Back
Top Bottom