Under the Before_Update event of My_Combobox on My_Form, I'm trying to call the On Undo event of My_Combobox. How do I do it?
This is the code under the Undo event I'm trying to execute:
Private Sub My_Combobox_Undo(Cancel As Integer)
Dim intResponse As Integer
Dim strPrompt As String
strPrompt = "Cancel the change?"
intResponse = MsgBox(strPrompt, vbYesNo)
If intResponse = vbYes Then
Cancel = True
Cancel = False