Delete confirmation dialog box

Bonhomme Septheure

Registered User.
Local time
Today, 02:13
Joined
Apr 27, 2012
Messages
14
Hi,

Is there a way in a form's BeforeDelConfirm or AfterDelConfirm event to detect the response to the confirmation dialog box Access displays when a user deletes a record?

I'd like to force a subform to requery if "yes" is chosen in the dialog box.

Thanks!
 
Thanks for replying so quickly!

I actually found a solution on the following link regarding the Form.AfterDelConfirm event: http://msdn.microsoft.com/en-us/library/office/ff193473.aspx

There's an example there of using a select case statement to determine whether the deletion occurred or whether the user cancelled it.

I shouldn't have be using the BeforeDelConfirm event in the first place.

Thanks!
 

Users who are viewing this thread

Back
Top Bottom