Posted By

heislekw on 03/08/11


Tagged

undo dirty


Versions (?)

Detect if form is being edited - Option 1


 / Published in: Visual Basic
 

  1. Private Sub Form_Current()
  2. Me!cmdUndo.Enabled = False
  3. End Sub
  4.  
  5. Private Sub Form_Dirty(Cancel As Integer)
  6. Me!cmdUndo.Enabled = True
  7. End Sub
  8.  
  9. Sub cmdUndo_Click()
  10. DoCmd.RunCommand acCmdUndo
  11. End Sub

Report this snippet  

You need to login to post a comment.