Access OnDelete message

G

Guest

How do you stop the Access message when you delete a record. I want to
create my own but can't figure out how to stop the Access delete confirmation
message.
 
K

Ken Snell \(MVP\)

You set the Response variable to the constant "acDataErrContinue" value in
the BeforeDelConfirm event procedure:


Private Sub Form_BeforeDelConfirm(Cancel As Integer, Response As Integer)
On Error Resume Next
Response = acDataErrContinue
End Sub
 

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