Making the undo command button inactive

  • Thread starter Thread starter Jeff
  • Start date Start date
J

Jeff

I have a undo command button on my form. How do I make it inactive when
there is nothing to undo. OR make it active when the form is dirty?
 
you could add the following code to the form's Current event, and to the
AfterUpdate event, and the OnDirty event, as

Me!CommandButtonName.Enabled = Me.Dirty

you may need to trigger it on other events as well, depends on what actions
are available to the user in the form, and what actions take place
programmatically.

hth
 
Back
Top