I have a form with a checkbox for the field "active". By default the box is checked. I currently have code to prompt the user if they have added or removed the check and asks if they would like to undo the action however if you undo the action it doesn't undo anything. Here is my code.
Private Sub Active_AfterUpdate()
Dim strmsg As String
strmsg = "The Clients active status has changed. "
strmsg = strmsg & "Do you want to keep the change?"
strmsg = strmsg & "Click <YES> to CONTINUE or <NO> to undo."
If MsgBox(strmsg, vbQuestion + vbYesNo, "Continue") Then
'Continue
Else
Me!Undo.Active
End If
End Sub
I've also tried me.undo and tried using DoCmd.RunCommand acCmdUndo
Private Sub Active_AfterUpdate()
Dim strmsg As String
strmsg = "The Clients active status has changed. "
strmsg = strmsg & "Do you want to keep the change?"
strmsg = strmsg & "Click <YES> to CONTINUE or <NO> to undo."
If MsgBox(strmsg, vbQuestion + vbYesNo, "Continue") Then
'Continue
Else
Me!Undo.Active
End If
End Sub
I've also tried me.undo and tried using DoCmd.RunCommand acCmdUndo