kelly mort
Well-known Member
- Joined
- Apr 10, 2017
- Messages
- 2,169
- Office Version
- 2016
- Platform
- Windows
I have this code section used to confirm a delete. But when even I click No, it still deletes the entry. What is that I am doing wrongly? I don’t seem to figure it out yet. Please help a friend. Thanks
Kelly
Kelly
Code:
Select Case MsgBox("You are about to delete ID " & Reg1.Value & vbCrLf & "Do you want to proceed?", vbYesNo Or vbQuestion Or vbDefaultButton1, "Are you sure about this?")
Case vbYes
Case vbNo
End Select