I have a reset button that resets the form back to a blank form. It worked fine as just Me.Undo behind the button. Now I would like to prompt the user whether they truly want to reset the form (in case they accidently click it).
Currently,
But the undo portion does not work at all.Code:Private Sub btnReset_Click() Dim UseResponse As Integer UseResponse = MsgBox("Undo entries?", vbYesNo, "Undo") If UseResponse = vbYes Then Me.Undo Else End If End Sub