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
 

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

Similar Threads

Clicking label makes Dirty property True 10
>> button has focus 4
Undo button 2
Undo Button 2
Filter check box 6
UNDO button 3
undo issue 1
Can't undo a form's TextBox entry that has a validation rule 7

Back
Top