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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top