Detect if form is being edited - Option 1


/ Published in: Visual Basic
Save to your folder(s)



Copy this code and paste it in your HTML
  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


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.