Making the undo command button inactive

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?
 
T

tina

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
 
Top